Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/com/enderio/core/common/util/FluidUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public static IFluidHandler getFluidHandler(IBlockAccess world, BlockCoord bc) {
}

public static IFluidHandler getFluidHandler(IBlockAccess world, int x, int y, int z) {
if (world instanceof World && !((World) world).blockExists(x, y, z)) {
return null;
}
TileEntity te = world.getTileEntity(x, y, z);
return getFluidHandler(te);
}
Expand Down