Occurs when I do: SandProperties.applyVariant(block, sandVariant); with SandProperties.Variant.RED_SAND.
Caused by: java.lang.IllegalArgumentException: Cannot set property PropertyEnum{name=variant, clazz=class net.minecraft.block.BlockSand$EnumType, values=[sand, red_sand]} to RED_SAND on block minecraft:sand, it is not an allowed value
at net.minecraft.block.state.BlockState$StateImplemenation.a(BlockState.java:144) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
at net.canarymod.api.world.blocks.CanaryBlock.setPropertyValue(CanaryBlock.java:402) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
at net.canarymod.api.world.blocks.properties.helpers.BlockProperties.apply(BlockProperties.java:24) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
at net.canarymod.api.world.blocks.properties.helpers.SandProperties.applyVariant(SandProperties.java:53) ~[CanaryMod-1.8.0-1.2.0-SNAPSHOT-shaded.jar:1.8.0-1.2.0-SNAPSHOT]
Occurs when I do:
SandProperties.applyVariant(block, sandVariant);
withSandProperties.Variant.RED_SAND
.