updated some NBT for tiles

This commit is contained in:
Dylan K. Taylor
2017-10-31 18:22:06 +00:00
parent caf9eaa2da
commit f8e6438efe
5 changed files with 17 additions and 14 deletions

View File

@ -39,11 +39,11 @@ class ItemFrame extends Spawnable{
public function __construct(Level $level, CompoundTag $nbt){
if(!$nbt->hasTag(self::TAG_ITEM_ROTATION, ByteTag::class)){
$nbt->setTag(new ByteTag(self::TAG_ITEM_ROTATION, 0));
$nbt->setByte(self::TAG_ITEM_ROTATION, 0, true);
}
if(!$nbt->hasTag(self::TAG_ITEM_DROP_CHANCE, FloatTag::class)){
$nbt->setTag(new FloatTag(self::TAG_ITEM_DROP_CHANCE, 1.0));
$nbt->setFloat(self::TAG_ITEM_DROP_CHANCE, 1.0, true);
}
parent::__construct($level, $nbt);