Fix auto respawn bug in MCPE 0.3.2 - 0.5.0

This commit is contained in:
yefengeeeeeeeeeee 2025-04-12 19:13:36 +08:00
parent 7c8f32d100
commit 2712adc29f
9 changed files with 70 additions and 19 deletions

View file

@ -36,7 +36,7 @@ class ContainerSetContentPacket extends RakNetDataPacket{
$this->putSlot($slot);
}
if($this->windowid === 0 and count($this->hotbar) > 0){
$this->putShort(count($this->hotbar));
$this->putShort(count($this->hotbar));//null
foreach($this->hotbar as $slot){
$this->putInt($slot);
}