mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Refactored entity IDs in packets for consistency and to clarify on types
This commit is contained in:
@ -52,7 +52,7 @@ abstract class Food extends Item implements FoodSource{
|
||||
|
||||
public function onConsume(Entity $human){
|
||||
$pk = new EntityEventPacket();
|
||||
$pk->eid = $human->getId();
|
||||
$pk->entityRuntimeId = $human->getId();
|
||||
$pk->event = EntityEventPacket::USE_ITEM;
|
||||
if($human instanceof Player){
|
||||
$human->dataPacket($pk);
|
||||
|
Reference in New Issue
Block a user