From 8b5f6d1e67bbe62d37e281abf7a14e8b4272f17e Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sun, 21 Apr 2019 16:32:59 -0300 Subject: [PATCH] fixed some metadata --- .../protocols/protocol1_14to1_13_2/MetadataRewriter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/MetadataRewriter.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/MetadataRewriter.java index 330ee6887..b73c0163b 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/MetadataRewriter.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_14to1_13_2/MetadataRewriter.java @@ -86,13 +86,13 @@ public class MetadataRewriter { metadata.setMetaType(MetaType1_14.VillagerData); } } else if (type.is(Entity1_14Types.EntityType.ZOMBIE_VILLAGER)) { - if (metadata.getId() == 19) { + if (metadata.getId() == 18) { // plains metadata.setValue(new VillagerData(2, getNewProfessionId((int) metadata.getValue()), 0)); metadata.setMetaType(MetaType1_14.VillagerData); } - } else if (type.isOrHasParent(Entity1_14Types.EntityType.ARROW)) { - if (metadata.getId() >= 9) { + } else if (type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ARROW)) { + if (metadata.getId() >= 9) { // New piercing metadata.setId(metadata.getId() + 1); } } else if (type.is(Entity1_14Types.EntityType.FIREWORKS_ROCKET)) { @@ -134,7 +134,7 @@ public class MetadataRewriter { // TODO Are witch and ravager also abstract illagers? They all inherit the new metadata 14 added in 19w13a if (type.is(Entity1_14Types.EntityType.WITCH) || type.is(Entity1_14Types.EntityType.RAVAGER) || type.isOrHasParent(Entity1_14Types.EntityType.ABSTRACT_ILLAGER_BASE)) { - if (metadata.getId() >= 14) { // TODO 19w13 added a new boolean with id 14 + if (metadata.getId() >= 14) { // TODO 19w13 added a new boolean (raid participant - is celebrating) with id 14 metadata.setId(metadata.getId() + 1); } }