mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Merge branch 'stable' into item-stack-request
This commit is contained in:
commit
6b2156151f
@ -175,6 +175,7 @@ class TypeConverter{
|
|||||||
$nbt = new CompoundTag();
|
$nbt = new CompoundTag();
|
||||||
}
|
}
|
||||||
$nbt->setInt(self::DAMAGE_TAG, $itemStack->getDamage());
|
$nbt->setInt(self::DAMAGE_TAG, $itemStack->getDamage());
|
||||||
|
$meta = 0;
|
||||||
}elseif($isBlockItem && $itemStack->getMeta() !== 0){
|
}elseif($isBlockItem && $itemStack->getMeta() !== 0){
|
||||||
//TODO HACK: This foul-smelling code ensures that we can correctly deserialize an item when the
|
//TODO HACK: This foul-smelling code ensures that we can correctly deserialize an item when the
|
||||||
//client sends it back to us, because as of 1.16.220, blockitems quietly discard their metadata
|
//client sends it back to us, because as of 1.16.220, blockitems quietly discard their metadata
|
||||||
@ -183,6 +184,7 @@ class TypeConverter{
|
|||||||
$nbt = new CompoundTag();
|
$nbt = new CompoundTag();
|
||||||
}
|
}
|
||||||
$nbt->setInt(self::PM_META_TAG, $itemStack->getMeta());
|
$nbt->setInt(self::PM_META_TAG, $itemStack->getMeta());
|
||||||
|
$meta = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user