fix FCP oc compat

This commit is contained in:
PewPewCricket 2025-07-24 13:30:59 -05:00
parent 8686a64141
commit f0679b04cc
2 changed files with 3 additions and 2 deletions

View File

@ -306,6 +306,7 @@ public class FluidPump extends BlockContainer implements INBTTransformable, ILoo
int input = args.checkInteger(0); int input = args.checkInteger(0);
if (input > 10000 || input < 0) if (input > 10000 || input < 0)
return new Object[] {null, "Number outside of bounds."}; return new Object[] {null, "Number outside of bounds."};
bufferSize = input;
return new Object[] {true}; return new Object[] {true};
} }

View File

@ -236,7 +236,7 @@ public class TileEntityMachineTurbine extends TileEntityLoadedBase implements IS
} }
} }
nbt.setTag("items", list); nbt.setTag("items", list);
if (customName != null) { if (customName != null) {
nbt.setString("name", customName); nbt.setString("name", customName);
} }
@ -280,7 +280,7 @@ public class TileEntityMachineTurbine extends TileEntityLoadedBase implements IS
this.tryProvide(worldObj, xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, dir); this.tryProvide(worldObj, xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, dir);
tanks[0].setType(0, 1, slots); tanks[0].setType(0, 1, slots);
tanks[0].loadTank(2, 3, slots); tanks[0].loadTank(2, 3, slots);
power = Library.chargeItemsFromTE(slots, 4, power, maxPower); power = Library.chargeItemsFromTE(slots, 4, power, maxPower);
FluidType in = tanks[0].getTankType(); FluidType in = tanks[0].getTankType();