Added CustomBlockData to skulls

This commit is contained in:
jojoe77777 2016-04-10 21:54:11 +10:00
commit 72ad627203

View file

@ -85,6 +85,12 @@ class SkullBlock extends Transparent{
new ByteTag("SkullType", $item->getDamage()),
$rot
]);
if($item->hasCustomBlockData()){
foreach($item->getCustomBlockData() as $key => $v){
$nbt->{$key} = $v;
}
}
$chunk = $this->getLevel()->getChunk($this->x >> 4, $this->z >> 4);
$pot = Tile::createTile("Skull", $chunk, $nbt);