mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 06:50:46 +00:00
I fixed it so good it stopped working
But now it does again. I'm just silly like that sometimes
This commit is contained in:
parent
d3e839a9bb
commit
41189e5f25
@ -11,6 +11,7 @@ import com.hbm.inventory.material.Mats;
|
|||||||
import com.hbm.items.ModItems;
|
import com.hbm.items.ModItems;
|
||||||
import com.hbm.items.machine.ItemMold;
|
import com.hbm.items.machine.ItemMold;
|
||||||
import com.hbm.items.machine.ItemScraps;
|
import com.hbm.items.machine.ItemScraps;
|
||||||
|
import com.hbm.main.MainRegistry;
|
||||||
import com.hbm.tileentity.IGUIProvider;
|
import com.hbm.tileentity.IGUIProvider;
|
||||||
import com.hbm.util.fauxpointtwelve.DirPos;
|
import com.hbm.util.fauxpointtwelve.DirPos;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
@ -77,7 +78,7 @@ public class TileEntityMachineStrandCaster extends TileEntityFoundryCastingBase
|
|||||||
int moldsToCast = maxProcessable();
|
int moldsToCast = maxProcessable();
|
||||||
|
|
||||||
// Makes it flush the buffers after 10 seconds of inactivity, or when they're full
|
// Makes it flush the buffers after 10 seconds of inactivity, or when they're full
|
||||||
if (moldsToCast > 0 && (moldsToCast == 10 || worldObj.getWorldTime() >= lastCastTick + 200)) {
|
if (moldsToCast > 0 && (moldsToCast >= 9 || worldObj.getWorldTime() >= lastCastTick + 200)) {
|
||||||
|
|
||||||
ItemMold.Mold mold = this.getInstalledMold();
|
ItemMold.Mold mold = this.getInstalledMold();
|
||||||
|
|
||||||
@ -107,9 +108,9 @@ public class TileEntityMachineStrandCaster extends TileEntityFoundryCastingBase
|
|||||||
|
|
||||||
water.setFill(water.getFill() - getWaterRequired() * moldsToCast);
|
water.setFill(water.getFill() - getWaterRequired() * moldsToCast);
|
||||||
steam.setFill(steam.getFill() + getWaterRequired() * moldsToCast);
|
steam.setFill(steam.getFill() + getWaterRequired() * moldsToCast);
|
||||||
}
|
|
||||||
|
|
||||||
lastCastTick = worldObj.getWorldTime();
|
lastCastTick = worldObj.getWorldTime();
|
||||||
|
}
|
||||||
|
|
||||||
networkPackNT(150);
|
networkPackNT(150);
|
||||||
}
|
}
|
||||||
@ -117,7 +118,7 @@ public class TileEntityMachineStrandCaster extends TileEntityFoundryCastingBase
|
|||||||
|
|
||||||
private int maxProcessable() {
|
private int maxProcessable() {
|
||||||
ItemMold.Mold mold = this.getInstalledMold();
|
ItemMold.Mold mold = this.getInstalledMold();
|
||||||
if (type == null || mold == null || mold.getOutput(type) != null) {
|
if (type == null || mold == null || mold.getOutput(type) == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user