use a block access wrapper to correctly render Extra Utilities' colored cobblestone

This commit is contained in:
Matthias Mann committed 2015-01-14 00:21:06 +01:00
1 parent e2878ac24e
commit 804bc707e5
1 file changed
+2 -1
@@ -244,7 +244,8 @@ public class BlockPaintedSlab extends BlockSlab implements ITileEntityProvider,
if(te instanceof TileEntityPaintedBlock) {
TileEntityPaintedBlock tef = (TileEntityPaintedBlock) te;
if(tef.getSourceBlock() != null) {
return tef.getSourceBlock().colorMultiplier(world, x, y, z);
PaintedBlockAccessWrapper ba = new PaintedBlockAccessWrapper(world);
return tef.getSourceBlock().colorMultiplier(ba, x, y, z);
}
}
return super.colorMultiplier(world, x, y, z);