This maked a moddable energy maximum, its default is the same

Imma just push it
This commit is contained in:
Brian Fopiano 2021-12-30 19:55:31 -08:00
parent 5502fa4584
commit 4fea28b313
2 changed files with 6 additions and 1 deletions

View File

@ -139,6 +139,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
updateChunks();
}
if (getDimension().isInfiniteEnergy()) {
energy += 1000;
fixEnergy();
@ -285,7 +286,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
}
private void fixEnergy() {
energy = M.clip(energy, 1D, 1000D);
energy = M.clip(energy, 1D, getDimension().getMaximumEnergy());
}
private void spawnIn(Chunk c, boolean initial) {

View File

@ -211,6 +211,10 @@ public class IrisDimension extends IrisRegistrant {
private KList<IrisShapedGeneratorStyle> overlayNoise = new KList<>();
@Desc("If true, the spawner system has infinite energy. This is NOT recommended because it would allow for mobs to keep spawning over and over without a rate limit")
private boolean infiniteEnergy = false;
@MinNumber(0)
@MaxNumber(10000)
@Desc("This is the maximum energy you can have in a dimension")
private double maximumEnergy = 1000;
@MinNumber(0.0001)
@MaxNumber(512)
@Desc("The rock zoom mostly for zooming in on a wispy palette")