Fix block states not being usable in 1.12

This commit is contained in:
libraryaddict 2025-01-06 02:51:06 +13:00
parent a1c7aa5037
commit 456ca8eefc

View File

@ -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"));
}