Skip to content

Commit

Permalink
V+
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatuu committed May 27, 2022
1 parent a1fbf25 commit 9cd5c39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
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 apiVersion = '1.18'
def spigotJarVersion = '1.18.2-R0.1-SNAPSHOT'
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/volmit/iris/engine/IrisWorldManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
public class IrisWorldManager extends EngineAssignedWorldManager {
private final Looper looper;
private final int id;
//private final KMap<Long, Long> chunkCooldowns;
private final KList<Runnable> updateQueue = new KList<>();
private final ChronoLatch cl;
private final ChronoLatch clw;
Expand All @@ -99,7 +98,6 @@ public IrisWorldManager() {
ecl = null;
cln = null;
clw = null;
//chunkCooldowns = null;
looper = null;
chunkUpdater = null;
id = -1;
Expand All @@ -112,7 +110,6 @@ public IrisWorldManager(Engine engine) {
cl = new ChronoLatch(3000);
ecl = new ChronoLatch(250);
clw = new ChronoLatch(1000, true);
//chunkCooldowns = new KMap<>();
id = engine.getCacheID();
energy = 25;
looper = new Looper() {
Expand Down Expand Up @@ -255,14 +252,6 @@ private boolean onAsyncTick() {
}
}

/*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);

Chunk[] cc = getEngine().getWorld().realWorld().getLoadedChunks();
Expand All @@ -279,7 +268,6 @@ private boolean onAsyncTick() {
}

spawnIn(c, false);
//chunkCooldowns.put(Cache.key(c), M.ms());
}

energy -= (actuallySpawned / 2D);
Expand Down

0 comments on commit 9cd5c39

Please sign in to comment.