This commit is contained in:
Sunch 2025-01-12 20:26:18 +08:00
parent 165388c8ae
commit 761ac69a20
13 changed files with 7 additions and 23 deletions

View file

@ -666,7 +666,7 @@ class Player{
public function sendInventorySlot($s){
$this->sendInventory();
return;
return true;
$s = (int) $s;
if(!isset($this->inventory[$s])){
$pk = new ContainerSetSlotPacket;
@ -1727,7 +1727,7 @@ class Player{
$this->server->schedule(50, [$this, "measureLag"], [], true);
$pk = new SetTimePacket;
$pk->time = (int) $this->level->getTime();
$pk->time = $this->level->getTime();
$pk->started = !$this->level->isTimeStopped();
$this->dataPacket($pk);