From 86c5b9c3259a98025845225dd0a523f229fe6f54 Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Sun, 29 Dec 2024 17:18:59 +0100 Subject: [PATCH] fix carpet_color on 1.20-1.20.4 --- .../lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java b/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java index d0f0e22..4a43cd4 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java @@ -507,8 +507,8 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry { else if (ver.isNewerThanOrEquals(ServerVersion.V_1_14)) llamaIndex = 19; else llamaIndex = 17; - // Removed in 1.20 - if (!ver.isNewerThanOrEquals(ServerVersion.V_1_20)) register(new EncodedIntegerProperty("carpet_color", DyeColor.class, llamaIndex++, obj -> obj == null ? -1 : obj.ordinal())); + // Removed in 1.21 + if (!ver.isNewerThanOrEquals(ServerVersion.V_1_21)) register(new EncodedIntegerProperty("carpet_color", DyeColor.class, llamaIndex++, obj -> obj == null ? -1 : obj.ordinal())); register(new EncodedIntegerProperty<>("llama_variant", LlamaVariant.CREAMY, llamaIndex, Enum::ordinal)); if (!ver.isNewerThanOrEquals(ServerVersion.V_1_12)) return;