mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Add missing check for allowed values to recolorBlock() (#4579)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user