mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
This maked a moddable energy maximum, its default is the same
Imma just push it
This commit is contained in:
parent
5502fa4584
commit
4fea28b313
@ -139,6 +139,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
updateChunks();
|
updateChunks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (getDimension().isInfiniteEnergy()) {
|
if (getDimension().isInfiniteEnergy()) {
|
||||||
energy += 1000;
|
energy += 1000;
|
||||||
fixEnergy();
|
fixEnergy();
|
||||||
@ -285,7 +286,7 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void fixEnergy() {
|
private void fixEnergy() {
|
||||||
energy = M.clip(energy, 1D, 1000D);
|
energy = M.clip(energy, 1D, getDimension().getMaximumEnergy());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void spawnIn(Chunk c, boolean initial) {
|
private void spawnIn(Chunk c, boolean initial) {
|
||||||
|
@ -211,6 +211,10 @@ public class IrisDimension extends IrisRegistrant {
|
|||||||
private KList<IrisShapedGeneratorStyle> overlayNoise = new KList<>();
|
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")
|
@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;
|
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)
|
@MinNumber(0.0001)
|
||||||
@MaxNumber(512)
|
@MaxNumber(512)
|
||||||
@Desc("The rock zoom mostly for zooming in on a wispy palette")
|
@Desc("The rock zoom mostly for zooming in on a wispy palette")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user