mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 15:56:27 +00:00
sync
This commit is contained in:
@@ -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("-------------------------");
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user