Skip to content

Commit c8a316f

Browse files
authored
Fix pipenet insertion NPE caused by isFaceBlocked (#2844)
1 parent d02cd41 commit c8a316f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/gregtech/api/pipenet/tile/TileEntityPipeBase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ public void setFaceBlocked(EnumFacing side, boolean blocked) {
278278

279279
@Override
280280
public boolean isFaceBlocked(EnumFacing side) {
281+
if (side == null) return true; // says hey, you can't insert from nowhere
281282
return isFaceBlocked(blockedConnections, side);
282283
}
283284

0 commit comments

Comments
 (0)