mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Fixed 1000x times intended duration for zombie fuel.
This commit is contained in:
1 parent
4e8ef3f362
commit
681c8fb37d
2 files changed
+7
-7
No files matched your search
@@ -121,7 +121,7 @@ public final class Config {
|
||||
public static double maxPhotovoltaicAdvancedOutput = 4.0;
|
||||
|
||||
public static double zombieGeneratorMjPerTick = 8.0;
|
||||
public static int zombieGeneratorTicksPerMbFuel = 10000;
|
||||
public static int zombieGeneratorTicksPerBucketFuel = 10000;
|
||||
|
||||
|
||||
public static boolean combustionGeneratorUseOpaqueModel = true;
|
||||
@@ -401,8 +401,8 @@ public final class Config {
|
||||
|
||||
zombieGeneratorMjPerTick = config.get("Power Settings", "zombieGeneratorMjPerTick", zombieGeneratorMjPerTick,
|
||||
"The amount of power generated per tick.").getDouble(zombieGeneratorMjPerTick);
|
||||
zombieGeneratorTicksPerMbFuel = config.get("Power Settings", "zombieGeneratorTicksPerMbFuel", zombieGeneratorTicksPerMbFuel,
|
||||
"The number of ticks one Mb of fuel lasts.").getInt(zombieGeneratorTicksPerMbFuel);
|
||||
zombieGeneratorTicksPerBucketFuel = config.get("Power Settings", "zombieGeneratorTicksPerMbFuel", zombieGeneratorTicksPerBucketFuel,
|
||||
"The number of ticks one bucket of fuel lasts.").getInt(zombieGeneratorTicksPerBucketFuel);
|
||||
|
||||
addFuelTooltipsToAllFluidContainers = config.get("Personal Settings", "addFuelTooltipsToAllFluidContainers", addFuelTooltipsToAllFluidContainers,
|
||||
"If true, the MJ/t and burn time of the fuel will be displayed in all tooltips for fluid containers with fuel.").getBoolean(
|
||||
|
||||
@@ -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.zombieGeneratorTicksPerMbFuel;
|
||||
int tickPerMbFuel = Config.zombieGeneratorTicksPerBucketFuel;
|
||||
|
||||
private boolean tanksDirty;
|
||||
private boolean active = false;
|
||||
@@ -178,12 +178,12 @@ public class TileZombieGenerator extends AbstractMachineEntity implements IPower
|
||||
if(fuelTank.getFluidAmount() < fuelTank.getCapacity() * 0.9f) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
ticksRemaingFuel--;
|
||||
|
||||
ticksRemaingFuel--;
|
||||
if(ticksRemaingFuel <= 0) {
|
||||
fuelTank.drain(1, true);
|
||||
ticksRemaingFuel = tickPerMbFuel;
|
||||
ticksRemaingFuel = tickPerMbFuel/1000;
|
||||
tanksDirty = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user