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

This commit is contained in:
Ben Staddon 2018-01-18 20:51:02 +00:00 committed by LexManos
parent bc3bbe3d84
commit 94d4cb3396
1 changed files with 1 additions and 1 deletions

View File

@ -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;