Fix ZombieGen field names and incorrect GUI string

This commit is contained in:
tterrag1098 committed 2014-08-22 02:59:13 -04:00
1 parent 0b1fedcc9a
commit 7bae3c1dcc
2 files changed
+3 -3

No files matched your search

@@ -84,7 +84,7 @@ public class GuiZombieGenerator extends GuiMachineBase {
RenderUtil.renderGuiTank(gen.fuelTank.getFluid(), gen.fuelTank.getCapacity(), gen.fuelTank.getFluidAmount(), x, y, zLevel, 15, 47);
if(gen.isActive()) {
txt = gen.tickPerMbFuel + " t/Mb";
txt = gen.tickPerBucketOfFuel / 1000 + " t/Mb";
sw = fr.getStringWidth(txt);
fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 46, ColorUtil.getRGB(Color.WHITE));
}
@@ -28,7 +28,7 @@ public class TileZombieGenerator extends AbstractMachineEntity implements IPower
final NutrientTank fuelTank = new NutrientTank(FluidContainerRegistry.BUCKET_VOLUME * 2);
float outputPerTick = (float) Config.zombieGeneratorMjPerTick;
int tickPerMbFuel = Config.zombieGeneratorTicksPerBucketFuel;
int tickPerBucketOfFuel = Config.zombieGeneratorTicksPerBucketFuel;
private boolean tanksDirty;
private boolean active = false;
@@ -183,7 +183,7 @@ public class TileZombieGenerator extends AbstractMachineEntity implements IPower
ticksRemaingFuel--;
if(ticksRemaingFuel <= 0) {
fuelTank.drain(1, true);
ticksRemaingFuel = tickPerMbFuel/1000;
ticksRemaingFuel = tickPerBucketOfFuel/1000;
tanksDirty = true;
}