diff --git a/core/src/main/java/com/volmit/iris/core/commands/CommandDeveloper.java b/core/src/main/java/com/volmit/iris/core/commands/CommandDeveloper.java index fa3572de6..78a65a322 100644 --- a/core/src/main/java/com/volmit/iris/core/commands/CommandDeveloper.java +++ b/core/src/main/java/com/volmit/iris/core/commands/CommandDeveloper.java @@ -56,7 +56,7 @@ public class CommandDeveloper implements DecreeExecutor { Iris.info(C.DARK_PURPLE + "Tectonic Limit: " + C.LIGHT_PURPLE + engine.getMantle().getTectonicLimit()); Iris.info(C.DARK_PURPLE + "Tectonic Plates: " + C.LIGHT_PURPLE + engine.getMantle().getLoadedRegionCount()); Iris.info(C.DARK_PURPLE + "Tectonic ToUnload: " + C.LIGHT_PURPLE + outputToUnload); - Iris.info(C.DARK_PURPLE + "Tectonic Unload Duration: " + C.LIGHT_PURPLE + Form.duration(engine.getMantle().getTectonicDuration())); + Iris.info(C.DARK_PURPLE + "Tectonic Unload Duration: " + C.LIGHT_PURPLE + Form.duration((long) engine.getMantle().getTectonicDuration())); Iris.info(C.DARK_PURPLE + "Cache Size: " + C.LIGHT_PURPLE + Form.f(IrisData.cacheSize())); Iris.info(C.DARK_PURPLE + "LastUse Size: " + C.LIGHT_PURPLE + Form.mem(lastUseSize)); Iris.info("-------------------------"); diff --git a/core/src/main/java/com/volmit/iris/engine/mantle/EngineMantle.java b/core/src/main/java/com/volmit/iris/engine/mantle/EngineMantle.java index 719f2482a..bc4e9f5d2 100644 --- a/core/src/main/java/com/volmit/iris/engine/mantle/EngineMantle.java +++ b/core/src/main/java/com/volmit/iris/engine/mantle/EngineMantle.java @@ -295,10 +295,10 @@ public interface EngineMantle extends IObjectPlacer { default long getToUnload(){ return getMantle().ToUnloadTectonic(); } - default long getTectonicLimit(){ - return getTectonicLimit(); + default double getTectonicLimit(){ + return getMantle().getTectonicLimit(); } - default long getTectonicDuration(){ + default double getTectonicDuration(){ return getMantle().getTectonicUnloadDuration(); } } diff --git a/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java b/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java index 52f87eb38..4d6eaa38f 100644 --- a/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java +++ b/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java @@ -403,6 +403,7 @@ public class Mantle { @Getter AtomicInteger FakeToUnload = new AtomicInteger(0); AtomicDouble adjustedIdleDuration = new AtomicDouble(0); + @Getter double tectonicLimit = 30; @@ -477,11 +478,10 @@ public class Mantle { public long ToUnloadTectonic(){ return FakeToUnload.get(); } - public long getTectonicUnloadDuration(){ - return (long) adjustedIdleDuration.get(); + public double getTectonicUnloadDuration(){ + return adjustedIdleDuration.get(); } - /** * This retreives a future of the Tectonic Plate at the given coordinates. * All methods accessing tectonic plates should go through this method