mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
removed obsolete EntityEvent broadcast
This commit is contained in:
parent
6ccb494f8d
commit
ddb7fd12f2
@ -2512,12 +2512,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$pk = new EntityEventPacket();
|
|
||||||
$pk->entityRuntimeId = $this->getId();
|
|
||||||
$pk->event = EntityEventPacket::USE_ITEM;
|
|
||||||
$this->dataPacket($pk);
|
|
||||||
$this->server->broadcastPacket($this->getViewers(), $pk);
|
|
||||||
|
|
||||||
if($this->isSurvival()){
|
if($this->isSurvival()){
|
||||||
$slot = $this->inventory->getItemInHand();
|
$slot = $this->inventory->getItemInHand();
|
||||||
--$slot->count;
|
--$slot->count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user