Add missing check for allowed values to recolorBlock() (#4579)

This commit is contained in:
Ben Staddon authored and LexManos committed 2018-01-18 12:51:02 -08:00
1 parent bc3bbe3d84
commit 94d4cb3396
1 file changed
+1 -1
@@ -1206,7 +1206,7 @@
+ if (prop.func_177701_a().equals("color") && prop.func_177699_b() == net.minecraft.item.EnumDyeColor.class)
+ {
+ net.minecraft.item.EnumDyeColor current = (net.minecraft.item.EnumDyeColor)state.func_177229_b(prop);
+ if (current != color)
+ if (current != color && prop.func_177700_c().contains(color))
+ {
+ world.func_175656_a(pos, state.func_177226_a(prop, color));
+ return true;