mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Fixed Player not getting in survival mode removed due to BlockAPI checking Server default gamemode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user