The bug
Falling dust particles from anvils and concrete powder blocks are always black. See screenshots.
Code analysis
Based on 17w06a decompiled using JD GUI and 1.11.2 decompiled using MCP 9.35 rc1
The concrete powder block does not override the method net.minecraft.block.BlockFalling.getDustColor(IBlockState)
. Considering that no block is only a BlockFalling
but instead as of 1.11.2 every block is a subclass, it might be better if BlockFalling
was abstract and the getDustColor
method as well.
Linked issues
is duplicated by 3
Attachments
Comments 7
Based on 1.12.2 (with MCP 940, mcp-stable-39 mappings), code, the fix is very easily. In the class `BlockConcretePowder` (which extends BlockFalling`), there is an overridden method missing. Using 1.12 symbols, the method will something like
public class BlockConcretePowder extends BlockFalling {
// ...
@Override
public int getDustColor(IBlockState state)
{
return state.getValue(COLOR).getColorValue(); }
}
// ...
}
Hopefully, this (simple) fix will help Mojang.
Confirmed, here is a command for testing it :
It doesn't seem to affect other new blocks nor blockcrack/blockdust.