Blocked again opening of chests in Creative mode

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-18 17:05:26 +02:00
parent 96baeaaad2
commit 639ca67a10
3 changed files with 7 additions and 4 deletions

View File

@ -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++;