This commit is contained in:
Vincent Lee committed 2017-08-20 12:23:08 -05:00
1 parent 9fa41e68b3
commit 4eac5e44c4
1 file changed
+4
@@ -44,6 +44,10 @@ public class PlatformModel implements IBakedModel {
return Minecraft.getMinecraft().getBlockRendererDispatcher().getBlockModelShapes().getModelManager().getMissingModel().getQuads(state, side, rand);
BlockRenderLayer layer = MinecraftForgeClient.getRenderLayer();
if(layer == null) {
layer = BlockRenderLayer.SOLID; // workaround for when this isn't set (digging, etc.)
}
IBlockState heldState = ((IExtendedBlockState) state).getValue(BotaniaStateProps.HELD_STATE);
IBlockAccess heldWorld = ((IExtendedBlockState) state).getValue(BotaniaStateProps.HELD_WORLD);
BlockPos heldPos = ((IExtendedBlockState) state).getValue(BotaniaStateProps.HELD_POS);