forked from SteamWar/SteamWar
Update CustomMap
This commit is contained in:
@@ -90,7 +90,7 @@ public class CustomMap implements Listener {
|
|||||||
}
|
}
|
||||||
}, 200L, 1200L);
|
}, 200L, 1200L);
|
||||||
} else {
|
} else {
|
||||||
AtomicReference<Long> lastModified = new AtomicReference<>();
|
AtomicReference<Long> lastModified = new AtomicReference<>(Long.MAX_VALUE);
|
||||||
Bukkit.getScheduler().runTaskTimer(LobbySystem.getInstance(), () -> {
|
Bukkit.getScheduler().runTaskTimer(LobbySystem.getInstance(), () -> {
|
||||||
long modified = mapFileOrDirectory.lastModified();
|
long modified = mapFileOrDirectory.lastModified();
|
||||||
if (modified > lastModified.get() || update) {
|
if (modified > lastModified.get() || update) {
|
||||||
|
|||||||
Reference in New Issue
Block a user