Added CustomBlockData to skulls
This commit is contained in:
parent
0b87ad85df
commit
72ad627203
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue