9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-29 03:59:06 +00:00

Dust of Revealing Pt.2, also Whoops.

This commit is contained in:
Vatuu
2022-05-16 19:40:39 +02:00
parent 923860a90b
commit a63a6f751f
5 changed files with 6 additions and 8 deletions

View File

@@ -58,7 +58,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
public class Mantle {
private final File dataFolder;
private final int worldHeight;
private final int minY;
private final Map<Long, Long> lastUse;
@Getter
private final Map<Long, TectonicPlate> loadedRegions;
@@ -77,12 +76,11 @@ public class Mantle {
* the world's height (in blocks)
*/
@BlockCoordinates
public Mantle(File dataFolder, int worldHeight, int minY) {
public Mantle(File dataFolder, int worldHeight) {
this.hyperLock = new HyperLock();
this.closed = new AtomicBoolean(false);
this.dataFolder = dataFolder;
this.worldHeight = worldHeight;
this.minY = minY;
this.io = new AtomicBoolean(false);
dataFolder.mkdirs();
unload = new KSet<>();
@@ -354,7 +352,6 @@ public class Mantle {
@SuppressWarnings("unchecked")
@BlockCoordinates
public <T> T get(int x, int y, int z, Class<T> t) {
y -= minY;
if(closed.get()) {
throw new RuntimeException("The Mantle is closed");
}