Skip to content

Commit

Permalink
Update LogisticsPipeWorldRenderer.java
Browse files Browse the repository at this point in the history
bugfix: NPE on pipe dismantling
  • Loading branch information
EJaxx committed Sep 12, 2024
1 parent e40388e commit f71190f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public void renderInventoryBlock(Block block, int metadata, int modelID, RenderB
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
RenderBlocks renderer) {
TileEntity tile = world.getTileEntity(x, y, z);
if (tile == null) return false;
LogisticsTileGenericPipe pipeTile = (LogisticsTileGenericPipe) tile;
if (config.isUseNewRenderer() && !pipeTile.renderState.forceRenderOldPipe) {
return newRenderer.renderWorldBlock(world, x, y, z, block, modelId, renderer);
Expand Down

0 comments on commit f71190f

Please sign in to comment.