From 280fe1aed02963a802920cda772690f5fbdba930 Mon Sep 17 00:00:00 2001 From: Myles Date: Sat, 24 Jun 2017 16:27:14 +0100 Subject: [PATCH] Fix Evocation Illager animation on 1.12 --- .../protocols/protocol1_12to1_11_1/MetadataRewriter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/MetadataRewriter.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/MetadataRewriter.java index 25da30137..a4e0c4865 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/MetadataRewriter.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_12to1_11_1/MetadataRewriter.java @@ -17,6 +17,12 @@ public class MetadataRewriter { // Apply rewrite BedRewriter.toClientItem((Item) metadata.getValue()); } + // Evocation Illager aggressive property became 13 + if (type.is(Entity1_12Types.EntityType.EVOCATION_ILLAGER)) { + if (metadata.getId() == 12) { + metadata.setId(13); + } + } } catch (Exception e) { metadatas.remove(metadata); if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) {