From f71190f4b559054d40da9fc56230d1af24555710 Mon Sep 17 00:00:00 2001 From: Evgeni <51190289+EJaxx@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:29:56 +0500 Subject: [PATCH] Update LogisticsPipeWorldRenderer.java bugfix: NPE on pipe dismantling --- .../java/logisticspipes/renderer/LogisticsPipeWorldRenderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/logisticspipes/renderer/LogisticsPipeWorldRenderer.java b/src/main/java/logisticspipes/renderer/LogisticsPipeWorldRenderer.java index 967e29e77..5bbb7eb7d 100644 --- a/src/main/java/logisticspipes/renderer/LogisticsPipeWorldRenderer.java +++ b/src/main/java/logisticspipes/renderer/LogisticsPipeWorldRenderer.java @@ -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);