mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
V+
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ plugins {
|
|||||||
id "de.undercouch.download" version "5.0.1"
|
id "de.undercouch.download" version "5.0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
version '2.1.1-1.18.2' // Needs to be version specific
|
version '2.1.2-1.18.2' // Needs to be version specific
|
||||||
def nmsVersion = "1.18.2"
|
def nmsVersion = "1.18.2"
|
||||||
def apiVersion = '1.18'
|
def apiVersion = '1.18'
|
||||||
def spigotJarVersion = '1.18.2-R0.1-SNAPSHOT'
|
def spigotJarVersion = '1.18.2-R0.1-SNAPSHOT'
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ import java.util.stream.Stream;
|
|||||||
public class IrisWorldManager extends EngineAssignedWorldManager {
|
public class IrisWorldManager extends EngineAssignedWorldManager {
|
||||||
private final Looper looper;
|
private final Looper looper;
|
||||||
private final int id;
|
private final int id;
|
||||||
//private final KMap<Long, Long> chunkCooldowns;
|
|
||||||
private final KList<Runnable> updateQueue = new KList<>();
|
private final KList<Runnable> updateQueue = new KList<>();
|
||||||
private final ChronoLatch cl;
|
private final ChronoLatch cl;
|
||||||
private final ChronoLatch clw;
|
private final ChronoLatch clw;
|
||||||
@@ -99,7 +98,6 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
ecl = null;
|
ecl = null;
|
||||||
cln = null;
|
cln = null;
|
||||||
clw = null;
|
clw = null;
|
||||||
//chunkCooldowns = null;
|
|
||||||
looper = null;
|
looper = null;
|
||||||
chunkUpdater = null;
|
chunkUpdater = null;
|
||||||
id = -1;
|
id = -1;
|
||||||
@@ -112,7 +110,6 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
cl = new ChronoLatch(3000);
|
cl = new ChronoLatch(3000);
|
||||||
ecl = new ChronoLatch(250);
|
ecl = new ChronoLatch(250);
|
||||||
clw = new ChronoLatch(1000, true);
|
clw = new ChronoLatch(1000, true);
|
||||||
//chunkCooldowns = new KMap<>();
|
|
||||||
id = engine.getCacheID();
|
id = engine.getCacheID();
|
||||||
energy = 25;
|
energy = 25;
|
||||||
looper = new Looper() {
|
looper = new Looper() {
|
||||||
@@ -255,14 +252,6 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*int chunkCooldownSeconds = 60;
|
|
||||||
|
|
||||||
for(Long i : chunkCooldowns.k()) {
|
|
||||||
if(M.ms() - chunkCooldowns.get(i) > TimeUnit.SECONDS.toMillis(chunkCooldownSeconds)) {
|
|
||||||
chunkCooldowns.remove(i);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
int spawnBuffer = RNG.r.i(2, 12);
|
int spawnBuffer = RNG.r.i(2, 12);
|
||||||
|
|
||||||
Chunk[] cc = getEngine().getWorld().realWorld().getLoadedChunks();
|
Chunk[] cc = getEngine().getWorld().realWorld().getLoadedChunks();
|
||||||
@@ -279,7 +268,6 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
spawnIn(c, false);
|
spawnIn(c, false);
|
||||||
//chunkCooldowns.put(Cache.key(c), M.ms());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
energy -= (actuallySpawned / 2D);
|
energy -= (actuallySpawned / 2D);
|
||||||
|
|||||||
Reference in New Issue
Block a user