mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ class BlockAPI{
|
||||||
$t->data["creator"] = $player->username;
|
$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);
|
$player->removeItem($item->getID(), $item->getMetadata(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue