mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Refactored Server::broadcastPacket() to be non-static
Why the hell was this static at all? Seriously Shoghi?
This commit is contained in:
@ -58,7 +58,7 @@ abstract class Food extends Item implements FoodSource{
|
||||
if($human instanceof Player){
|
||||
$human->dataPacket($pk);
|
||||
}
|
||||
Server::broadcastPacket($human->getViewers(), $pk);
|
||||
$human->getServer()->broadcastPacket($human->getViewers(), $pk);
|
||||
|
||||
$ev = new EntityEatItemEvent($human, $this);
|
||||
|
||||
|
Reference in New Issue
Block a user