mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +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;
|
break;
|
||||||
case ProtocolInfo::USE_ITEM_PACKET:
|
case ProtocolInfo::USE_ITEM_PACKET:
|
||||||
|
if($this->spawned === false or $this->dead === true){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$blockVector = Vector3::createVector($packet->x, $packet->y, $packet->z);
|
$blockVector = Vector3::createVector($packet->x, $packet->y, $packet->z);
|
||||||
|
|
||||||
$this->craftingType = 0;
|
$this->craftingType = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user