From 9c3395b76b0adb78c51fe8e49b3104c703691064 Mon Sep 17 00:00:00 2001 From: Elioby <7284033+Elioby@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:07:40 +0100 Subject: [PATCH] Use default painting mapping of 0 instead of -1 (#3073) --- .../protocols/protocol1_19to1_18_2/packets/EntityPackets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19to1_18_2/packets/EntityPackets.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19to1_18_2/packets/EntityPackets.java index 1c4f14f83..0201bfac3 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19to1_18_2/packets/EntityPackets.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19to1_18_2/packets/EntityPackets.java @@ -151,7 +151,7 @@ public final class EntityPackets extends EntityRewriter { final PacketWrapper metaPacket = wrapper.create(ClientboundPackets1_19.ENTITY_METADATA); metaPacket.write(Type.VAR_INT, wrapper.get(Type.VAR_INT, 0)); // Entity id final List metadata = new ArrayList<>(); - metadata.add(new Metadata(8, Types1_19.META_TYPES.paintingVariantType, protocol.getMappingData().getPaintingMappings().getNewId(motive))); + metadata.add(new Metadata(8, Types1_19.META_TYPES.paintingVariantType, protocol.getMappingData().getPaintingMappings().getNewIdOrDefault(motive, 0))); metaPacket.write(Types1_19.METADATA_LIST, metadata); metaPacket.send(Protocol1_19To1_18_2.class); });