From 456ca8eefc2f767e6ff48043dc24e6df4101ed15 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 6 Jan 2025 02:51:06 +1300 Subject: [PATCH] Fix block states not being usable in 1.12 --- .../disguise/utilities/params/ParamInfoTypes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java index f4fb0b7c..224bebe2 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java @@ -117,6 +117,9 @@ public class ParamInfoTypes { Material[] materials = getMaterials(); + paramInfos.add(new ParamInfoWrappedBlockData(WrappedBlockState.class, "BlockData", + "The block data states, barrel[facing=north,open=false] as example")); + if (NmsVersion.v1_13.isSupported()) { paramInfos.add(new ParamInfoParticle("Particle", "The different particles of Minecraft", materials)); paramInfos.add(new ParamInfoEnum(Particle.class, "ParticleType", "The different particles of Minecraft")); @@ -125,8 +128,6 @@ public class ParamInfoTypes { // new ParamInfoBlockData(BlockData.class, "BlockData", "The block data states, barrel[facing=north,open=false] as // example", // getMaterials())); - paramInfos.add(new ParamInfoWrappedBlockData(WrappedBlockState.class, "BlockData", - "The block data states, barrel[facing=north,open=false] as example")); } else { paramInfos.add(new ParamInfoEnum(Particle.class, "Particle", "The different particles of Minecraft")); }