Fixed Player not getting in survival mode removed due to BlockAPI checking Server default gamemode

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-17 17:13:36 +02:00
parent 32e0085c1e
commit f195168132

View File

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