mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-20 12:09:49 +00:00
fix for new ae2 dep
This commit is contained in:
1 file changed
+1
-8
@@ -412,12 +412,9 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
|
|||||||
IAEFluidStack remove;
|
IAEFluidStack remove;
|
||||||
if (doFill) {
|
if (doFill) {
|
||||||
remove = fluidGrid.injectItems(AEFluidStack.create(resource), Actionable.MODULATE, this.mySource);
|
remove = fluidGrid.injectItems(AEFluidStack.create(resource), Actionable.MODULATE, this.mySource);
|
||||||
if (remove == null) {
|
if (remove == null) {} else {
|
||||||
onStackReturnedToNetwork(resource);
|
|
||||||
} else {
|
|
||||||
FluidStack copy = resource.copy();
|
FluidStack copy = resource.copy();
|
||||||
copy.amount -= (int) remove.getStackSize();
|
copy.amount -= (int) remove.getStackSize();
|
||||||
onStackReturnedToNetwork(copy);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
remove = fluidGrid.injectItems(AEFluidStack.create(resource), Actionable.SIMULATE, this.mySource);
|
remove = fluidGrid.injectItems(AEFluidStack.create(resource), Actionable.SIMULATE, this.mySource);
|
||||||
@@ -450,10 +447,6 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
|
|||||||
return this.tanks.getTankInfo(from);
|
return this.tanks.getTankInfo(from);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onStackReturnedToNetwork(FluidStack fluidStack) {
|
|
||||||
this.iHost.getInterfaceDuality().onStackReturnedToNetwork(ItemFluidDrop.newAeStack(fluidStack));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static class InterfaceInventory extends MEMonitorIFluidHandler {
|
private static class InterfaceInventory extends MEMonitorIFluidHandler {
|
||||||
|
|
||||||
InterfaceInventory(DualityFluidInterface tileInterface) {
|
InterfaceInventory(DualityFluidInterface tileInterface) {
|
||||||
|
|||||||
Reference in new issue
Block a user