This commit is contained in:
RePixelatedMC
2023-11-15 12:22:36 +01:00
parent 4a3a7bc98d
commit c71c2494af
3 changed files with 7 additions and 7 deletions
@@ -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 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 Plates: " + C.LIGHT_PURPLE + engine.getMantle().getLoadedRegionCount());
Iris.info(C.DARK_PURPLE + "Tectonic ToUnload: " + C.LIGHT_PURPLE + outputToUnload); 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 + "Cache Size: " + C.LIGHT_PURPLE + Form.f(IrisData.cacheSize()));
Iris.info(C.DARK_PURPLE + "LastUse Size: " + C.LIGHT_PURPLE + Form.mem(lastUseSize)); Iris.info(C.DARK_PURPLE + "LastUse Size: " + C.LIGHT_PURPLE + Form.mem(lastUseSize));
Iris.info("-------------------------"); Iris.info("-------------------------");
@@ -295,10 +295,10 @@ public interface EngineMantle extends IObjectPlacer {
default long getToUnload(){ default long getToUnload(){
return getMantle().ToUnloadTectonic(); return getMantle().ToUnloadTectonic();
} }
default long getTectonicLimit(){ default double getTectonicLimit(){
return getTectonicLimit(); return getMantle().getTectonicLimit();
} }
default long getTectonicDuration(){ default double getTectonicDuration(){
return getMantle().getTectonicUnloadDuration(); return getMantle().getTectonicUnloadDuration();
} }
} }
@@ -403,6 +403,7 @@ public class Mantle {
@Getter @Getter
AtomicInteger FakeToUnload = new AtomicInteger(0); AtomicInteger FakeToUnload = new AtomicInteger(0);
AtomicDouble adjustedIdleDuration = new AtomicDouble(0); AtomicDouble adjustedIdleDuration = new AtomicDouble(0);
@Getter
double tectonicLimit = 30; double tectonicLimit = 30;
@@ -477,11 +478,10 @@ public class Mantle {
public long ToUnloadTectonic(){ public long ToUnloadTectonic(){
return FakeToUnload.get(); return FakeToUnload.get();
} }
public long getTectonicUnloadDuration(){ public double getTectonicUnloadDuration(){
return (long) adjustedIdleDuration.get(); return adjustedIdleDuration.get();
} }
/** /**
* This retreives a future of the Tectonic Plate at the given coordinates. * This retreives a future of the Tectonic Plate at the given coordinates.
* All methods accessing tectonic plates should go through this method * All methods accessing tectonic plates should go through this method