Maybe fix NPE in basin tile entity. Probably should check more thoroughly, but this should patch it for now

This commit is contained in:
grimmauld 2021-06-22 20:58:12 +02:00
parent 02ff18fcce
commit e4a340deef

View file

@ -453,7 +453,7 @@ public class BasinTileEntity extends SmartTileEntity implements IHaveGoggleInfor
if (targetInv == null && !outputItems.isEmpty())
return false;
FilteringBehaviour filter = TileEntityBehaviour.get(world, te.getPos(), FilteringBehaviour.TYPE);
FilteringBehaviour filter = world == null || te == null ? null : TileEntityBehaviour.get(world, te.getPos(), FilteringBehaviour.TYPE);
for (ItemStack itemStack : outputItems) {
// Catalyst items are never consumed
if (itemStack.hasContainerItem() && itemStack.getContainerItem()