mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Blocked again opening of chests in Creative mode
This commit is contained in:
@ -107,7 +107,7 @@ class ChestBlock extends TransparentBlock{
|
||||
));
|
||||
}
|
||||
|
||||
if($chest->class !== TILE_CHEST){
|
||||
if($chest->class !== TILE_CHEST or ($player->gamemode & 0x01) === 0x01){
|
||||
return true;
|
||||
}
|
||||
$player->windowCnt++;
|
||||
|
Reference in New Issue
Block a user