mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix #2330
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user