mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fixed UseItemPacket being able to be sent before spawning
This commit is contained in:
parent
34ae760def
commit
5bf2174cad
@ -1558,6 +1558,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
}
|
||||
break;
|
||||
case ProtocolInfo::USE_ITEM_PACKET:
|
||||
if($this->spawned === false or $this->dead === true){
|
||||
break;
|
||||
}
|
||||
|
||||
$blockVector = Vector3::createVector($packet->x, $packet->y, $packet->z);
|
||||
|
||||
$this->craftingType = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user