From bcdd04d549231f4fbc88d2ba27f4a40236ed199b Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 15 May 2020 10:48:08 -0700 Subject: [PATCH] Fix incorrect argument passed in RenderPipeline potentially causing crash. #6677 --- .../net/minecraftforge/client/model/pipeline/BlockInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java b/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java index 6f4e9c3c16..5cdf0dd0c5 100644 --- a/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java +++ b/src/main/java/net/minecraftforge/client/model/pipeline/BlockInfo.java @@ -144,7 +144,7 @@ public class BlockInfo BlockState thisStateShape = this.state.isSolid() && this.state.isTransparent() ? this.state : Blocks.AIR.getDefaultState(); BlockState otherStateShape = state.isSolid() && state.isTransparent() ? state : Blocks.AIR.getDefaultState(); - if(state.getOpacity(world, blockPos) == 15 || VoxelShapes.faceShapeCovers(thisStateShape.getFaceOcclusionShape(world, blockPos, side), otherStateShape.getFaceOcclusionShape(world, pos, side.getOpposite()))) + if(state.getOpacity(world, pos) == 15 || VoxelShapes.faceShapeCovers(thisStateShape.getFaceOcclusionShape(world, blockPos, side), otherStateShape.getFaceOcclusionShape(world, pos, side.getOpposite()))) { int x = side.getXOffset() + 1; int y = side.getYOffset() + 1;