From 2c3ab413f5cbfe0f8f21ae46566b34a21634fd7b Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 19 Mar 2013 23:44:10 +0100 Subject: [PATCH] Fixed Creative players spawning drops --- src/API/BlockAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 4f994a78..7e7fb5cb 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -184,7 +184,7 @@ class BlockAPI{ } - if(count($drops) > 0){ + if($player->gamemode !== CREATIVE and count($drops) > 0){ foreach($drops as $drop){ $this->drop($target, BlockAPI::getItem($drop[0] & 0xFFFF, $drop[1] & 0xFFFF, $drop[2] & 0xFF)); }