From adc84452d59f2ec17bb9c603cb1331ff62889bba Mon Sep 17 00:00:00 2001 From: Matsv Date: Tue, 13 Jun 2017 16:56:47 +0200 Subject: [PATCH] Fix invisible illusionator --- .../packets/EntityPackets1_12.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/EntityPackets1_12.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/EntityPackets1_12.java index 135a503a..4d18c9fc 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/EntityPackets1_12.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12to1_11_1/packets/EntityPackets1_12.java @@ -370,6 +370,16 @@ public class EntityPackets1_12 extends EntityRewriter { registerMetaHandler().filter(EntityType.EVOCATION_ILLAGER, true, 12).removed(); registerMetaHandler().filter(EntityType.EVOCATION_ILLAGER, true, 13).handleIndexChange(12); + registerMetaHandler().filter(EntityType.ILLUSION_ILLAGER, 0).handle(e -> { + byte mask = (byte) e.getData().getValue(); + + if ((mask & 0x20) == 0x20) + mask &= ~0x20; + + e.getData().setValue(mask); + return e.getData(); + }); + // Create Parrot storage registerMetaHandler().filter(EntityType.PARROT, true).handle(e -> { if (!e.getEntity().has(ParrotStorage.class))