From 5d1c79379b7a8d5ca2384d709b7680639515dff6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 14 Feb 2014 21:49:26 +0100 Subject: [PATCH] *and --- 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 372185a2b..a8bb3d26d 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 instanceof Player ($this->player->gamemode & 0x01) === 0){ + if($this->class === ENTITY_PLAYER and $this->player instanceof Player and ($this->player->gamemode & 0x01) === 0){ $inv = array(); for($i = 0; $i < PLAYER_SURVIVAL_SLOTS; ++$i){ $slot = $this->player->getSlot($i);