Refactored Server::broadcastPacket() to be non-static

Why the hell was this static at all? Seriously Shoghi?
This commit is contained in:
Dylan K. Taylor
2017-01-02 21:36:26 +00:00
parent 55791e0819
commit 0bd7ea211d
8 changed files with 23 additions and 23 deletions

View File

@ -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);