Added CanDestroy and Lock tag

This commit is contained in:
Shoghi Cervantes
2015-08-07 22:20:01 +02:00
parent 01d93d6e10
commit fcba9596d6
4 changed files with 30 additions and 0 deletions

View File

@ -117,6 +117,12 @@ class BurningFurnace extends Solid{
$furnace = Tile::createTile("Furnace", $this->getLevel()->getChunk($this->x >> 4, $this->z >> 4), $nbt);
}
if(isset($furnace->namedtag->Lock) and $furnace->namedtag->Lock instanceof String){
if($furnace->namedtag->Lock->getValue() !== $item->getCustomName()){
return true;
}
}
if($player->isCreative()){
return true;
}