mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
Fix FluidExportBus NPE (#314)
This commit is contained in:
1 parent
04558b6913
commit
25abc806df
1 file changed
+2
-3
@@ -112,10 +112,9 @@ public class PartFluidExportBus extends FCSharedFluidBus implements ICraftingReq
|
||||
this.didSomething = false;
|
||||
this.fluidToSend = this.calculateAmountToSend();
|
||||
final TileEntity te = this.getConnectedTE();
|
||||
|
||||
if (te instanceof IFluidHandler) {
|
||||
InventoryAdaptor destination;
|
||||
if (te instanceof IFluidHandler && (destination = this.getHandler(te)) != null) {
|
||||
try {
|
||||
final InventoryAdaptor destination = this.getHandler(te);
|
||||
final ICraftingGrid cg = this.getProxy().getCrafting();
|
||||
final IFluidHandler fh = (IFluidHandler) te;
|
||||
final IMEMonitor<IAEFluidStack> inv = this.getProxy().getStorage().getFluidInventory();
|
||||
|
||||
Reference in new issue
Block a user