mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Blocked again opening of chests in Creative mode
This commit is contained in:
parent
96baeaaad2
commit
639ca67a10
3 changed files with 7 additions and 4 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue