mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-17 16:08:00 +01:00
rewrite items in metadata
This commit is contained in:
parent
e261ced701
commit
fadebbc17b
@ -13,6 +13,7 @@ import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.Protocol1_12_2To1_13;
|
|||||||
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.data.EntityTypeMapping;
|
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.data.EntityTypeMapping;
|
||||||
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.data.PaintingMapping;
|
import nl.matsv.viabackwards.protocol.protocol1_12_2to1_13.data.PaintingMapping;
|
||||||
import us.myles.ViaVersion.api.PacketWrapper;
|
import us.myles.ViaVersion.api.PacketWrapper;
|
||||||
|
import us.myles.ViaVersion.api.minecraft.item.Item;
|
||||||
import us.myles.ViaVersion.api.minecraft.metadata.Metadata;
|
import us.myles.ViaVersion.api.minecraft.metadata.Metadata;
|
||||||
import us.myles.ViaVersion.api.minecraft.metadata.types.MetaType1_12;
|
import us.myles.ViaVersion.api.minecraft.metadata.types.MetaType1_12;
|
||||||
import us.myles.ViaVersion.api.remapper.PacketHandler;
|
import us.myles.ViaVersion.api.remapper.PacketHandler;
|
||||||
@ -399,6 +400,12 @@ public class EntityPackets1_13 extends EntityRewriter<Protocol1_12_2To1_13> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rewrite items
|
||||||
|
else if (typeId == 6) {
|
||||||
|
meta.setMetaType(MetaType1_12.Slot);
|
||||||
|
BlockItemPackets1_13.toClient((Item) meta.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
// Discontinue particles
|
// Discontinue particles
|
||||||
else if (typeId == 15) {
|
else if (typeId == 15) {
|
||||||
meta.setMetaType(MetaType1_12.Discontinued);
|
meta.setMetaType(MetaType1_12.Discontinued);
|
||||||
|
Loading…
Reference in New Issue
Block a user