update canBlockRenderInLayer

This commit is contained in:
Vincent Lee committed 2016-04-13 16:20:38 -05:00
1 parent 2c75af2359
commit f219836f81
2 files changed
+2 -2

No files matched your search

@@ -56,7 +56,7 @@ public class PlatformModel implements IBakedModel {
ModelResourceLocation path = new ModelResourceLocation("botania:platform", "variant=" + state.getValue(BotaniaStateProps.PLATFORM_VARIANT).getName());
return mc.getBlockRendererDispatcher().getBlockModelShapes().getModelManager().getModel(path).getQuads(state, side, rand);
} else if(heldState != null) {
if(heldState.getBlock().canRenderInLayer(layer)) {
if(heldState.getBlock().canRenderInLayer(heldState, layer)) {
IBlockState actual = heldState.getBlock().getActualState(heldState, new FakeBlockAccess(heldWorld), heldPos);
// Steal camo's model
@@ -92,7 +92,7 @@ public class BlockPlatform extends BlockCamo implements ILexiconable, IWandable
}
@Override
public boolean canRenderInLayer(BlockRenderLayer layer) {
public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) {
return true;
}