Refactor ICarvable to receive world and pos references. Closes #147.

This commit is contained in:
tterrag1098 committed 2015-01-15 13:09:34 -05:00
1 parent 2658e099a3
commit 1292a68d8d
19 files changed
+163 -81

No files matched your search

@@ -37,7 +37,7 @@ public class BlockAdvancedMarbleRenderer implements ISimpleBlockRenderingHandler
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks rendererOld) {
int meta = world.getBlockMetadata(x, y, z);
CarvableVariation var = ((ICarvable) block).getVariation(meta);
CarvableVariation var = ((ICarvable) block).getVariation(world, x, y, z, meta);
switch (var == null ? 0 : var.kind) {
case CarvableHelper.CTMX: