Skip to content

Commit 3c35035

Browse files
committed
Fix when TheOneProbe is not installed, use FluxNetworks will cause crash.
1 parent 8705370 commit 3c35035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/hellfirepvp/modularmachinery/common/tiles/TileEnergyOutputHatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected long attemptFluxNetworksTransfer(EnumFacing face, long maxCanExtract)
130130
TileEntity te = world.getTileEntity(at);
131131
if (te instanceof TileFluxPlug) {
132132
TileFluxPlug plug = (TileFluxPlug) te;
133-
long maxCanReceive = Math.min(plug.getMaxTransferLimit() - plug.getStoredPower(), maxCanExtract);
133+
long maxCanReceive = Math.min(plug.getMaxTransferLimit() - plug.getTransferBuffer(), maxCanExtract);
134134
return plug.getTransferHandler().receiveFromSupplier(maxCanReceive, oppositeSide, false);
135135
}
136136

0 commit comments

Comments
 (0)