Nullcheck tile in Lava/Water/Void sigils (#1236)
This commit is contained in:
parent
0beef19ba1
commit
77bdbed8b5
3 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ public class ItemSigilVoid extends ItemSigilBase {
|
|||
}
|
||||
|
||||
TileEntity tile = world.getTileEntity(blockPos);
|
||||
if (tile.hasCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side)) {
|
||||
if (tile != null && tile.hasCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side)) {
|
||||
IFluidHandler handler = tile.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side);
|
||||
FluidStack amount = handler.drain(1000, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue