From 00172ee6759508eedba1f900bf6b4fea949667c3 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Thu, 9 Jul 2020 14:55:52 +0200 Subject: [PATCH] Fix vindicator meta casting Fixes #226 --- .../protocol1_10to1_11/packets/EntityPackets1_11.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/EntityPackets1_11.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/EntityPackets1_11.java index 503289f8..1e1abfba 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/EntityPackets1_11.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/EntityPackets1_11.java @@ -297,9 +297,7 @@ public class EntityPackets1_11 extends LegacyEntityRewriter Metadata data = e.getData(); data.setId(13); data.setMetaType(MetaType1_9.VarInt); - - data.setValue((int) data.getValue() == 1 ? 2 : 4); - + data.setValue(((Number) data.getValue()).intValue() == 1 ? 2 : 4); return data; });