aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2021-02-01 05:29:17 +0800
committerBuildTools <james.jenour@protonmail.com>2021-02-01 05:29:17 +0800
commit5ea3130efceca3148334a613471cec7f22acdf8c (patch)
tree7266507b4b4319719ffe78ee95582d6756329916 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures
parent3290259e39e9816fd92afa85710de01a6ddfa3b9 (diff)
downloadnotenoughupdates-5ea3130efceca3148334a613471cec7f22acdf8c.tar.gz
notenoughupdates-5ea3130efceca3148334a613471cec7f22acdf8c.tar.bz2
notenoughupdates-5ea3130efceca3148334a613471cec7f22acdf8c.zip
PRE13.3
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java
index 856a9d86..2fa8d5be 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java
@@ -226,7 +226,14 @@ public class DwarvenMinesTextures {
public static void tick() {
time = System.currentTimeMillis();
- lastRetextureCheck.entrySet().removeIf((checks) -> time - checks.getValue() > 30*1000);
+ Set<ChunkCoordIntPair> remove = new HashSet<>();
+ for(Map.Entry<ChunkCoordIntPair, Long> entry : lastRetextureCheck.entrySet()) {
+ if(time - entry.getValue() > 30*1000) {
+ remove.add(entry.getKey());
+ }
+ }
+ lastRetextureCheck.keySet().removeAll(remove);
+ loadedChunkData.keySet().removeAll(remove);
/*if(Minecraft.getMinecraft().theWorld == null) return;