mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-16 10:55:39 +01:00
Always use the newest item type in ItemTranslator#viaB1_8toMc
Closes https://github.com/ViaVersion/ViaFabricPlus/issues/362
This commit is contained in:
parent
73711a7174
commit
eabb84e938
@ -110,7 +110,7 @@ public class ItemTranslator {
|
||||
wrapper.read(Type.UNSIGNED_BYTE); // sync id
|
||||
wrapper.read(Type.VAR_INT); // revision
|
||||
wrapper.read(Type.SHORT); // slot
|
||||
final Item viaItem = wrapper.read(Type.ITEM1_13_2); // item
|
||||
final Item viaItem = wrapper.read(getItemType(ProtocolTranslator.NATIVE_VERSION)); // item
|
||||
final ItemStack mcItem = new ItemStack(Registries.ITEM.get(viaItem.identifier()));
|
||||
mcItem.setCount(viaItem.amount());
|
||||
mcItem.setDamage(viaItem.data());
|
||||
|
Loading…
Reference in New Issue
Block a user