From 08149fa4b34599a80eace04e10f581990db1310f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 14 Feb 2014 20:56:00 +0100 Subject: [PATCH] Fixed #1229 --- src/world/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 11e3e81f8..372185a2b 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -164,7 +164,7 @@ class Entity extends Position{ } public function getDrops(){ - if($this->class === ENTITY_PLAYER and ($this->player->gamemode & 0x01) === 0){ + if($this->class === ENTITY_PLAYER and $this->player instanceof Player ($this->player->gamemode & 0x01) === 0){ $inv = array(); for($i = 0; $i < PLAYER_SURVIVAL_SLOTS; ++$i){ $slot = $this->player->getSlot($i);