Add missing check for allowed values to recolorBlock() (#4579)
This commit is contained in:
parent
bc3bbe3d84
commit
94d4cb3396
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue