mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fixed Player not getting in survival mode removed due to BlockAPI checking Server default gamemode
This commit is contained in:
parent
32e0085c1e
commit
f195168132
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user