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

View File

@@ -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("-------------------------");

View File

@@ -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();
}
}

View File

@@ -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