diff --git a/src/main/java/vivatech/common/block/entity/SterlingGeneratorBlockEntity.java b/src/main/java/vivatech/common/block/entity/SterlingGeneratorBlockEntity.java index 75e0768..2198a0c 100644 --- a/src/main/java/vivatech/common/block/entity/SterlingGeneratorBlockEntity.java +++ b/src/main/java/vivatech/common/block/entity/SterlingGeneratorBlockEntity.java @@ -15,8 +15,8 @@ import javax.annotation.Nullable; public class SterlingGeneratorBlockEntity extends AbstractMachineBlockEntity { - private static final int GENERATE_PER_TICK = 1; - private static final int TICK_PER_GENERATE = 5; + private static final int GENERATE_PER_FRAME = 1; + private static final int TICKS_PER_FRAME = 4; private int burnTime = 0; private int burnTimeTotal = 0; private final PropertyDelegate propertyDelegate = new PropertyDelegate() { @@ -82,7 +82,7 @@ protected boolean canInsertEnergy() { protected void serverTick() { if (burnTime > 0) { burnTime--; - if (burnTime % TICK_PER_GENERATE == 0) energy.insertEnergy(Vivatech.INFINITE_VOLTAGE, GENERATE_PER_TICK, Simulation.ACTION); + if (burnTime % TICKS_PER_FRAME == 0) energy.insertEnergy(Vivatech.INFINITE_VOLTAGE, GENERATE_PER_FRAME, Simulation.ACTION); } else if (inventory.get(0).getCount() > 0 && energy.getCurrentEnergy() < energy.getMaxEnergy()) { burnTime = FurnaceBlockEntity.createFuelTimeMap().getOrDefault(inventory.get(0).getItem(), 0) / 2; burnTimeTotal = burnTime;