From f19516813264a38554ffc498c05bd7a86e94ef8d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 17 Apr 2013 17:13:36 +0200 Subject: [PATCH] Fixed Player not getting in survival mode removed due to BlockAPI checking Server default gamemode --- 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 69e6019f..4d3d372b 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -289,7 +289,7 @@ class BlockAPI{ $t->data["creator"] = $player->username; } - if($this->server->gamemode === SURVIVAL or $this->server->gamemode === ADVENTURE){ + if($player->gamemode !== CREATIVE){ $player->removeItem($item->getID(), $item->getMetadata(), 1); }