Remove creative container open checks (lines up with 0.14)

This commit is contained in:
dktapps
2016-09-06 19:14:07 +01:00
committed by Dylan K. Taylor
parent 2a4f85107d
commit 42e8120961
5 changed files with 6 additions and 168 deletions

View File

@ -86,7 +86,7 @@ class Chest extends Transparent{
continue;
}
$c = $this->getSide($side);
if($c instanceof Chest and $c->getDamage() === $this->meta){
if($c->getId() === $this->id and $c->getDamage() === $this->meta){
$tile = $this->getLevel()->getTile($c);
if($tile instanceof TileChest and !$tile->isPaired()){
$chest = $tile;
@ -164,9 +164,6 @@ class Chest extends Transparent{
}
}
if($player->isCreative()){
return true;
}
$player->addWindow($chest->getInventory());
}