From 18984ad9b2edae6fb816bb5801188c5a59140d7e Mon Sep 17 00:00:00 2001 From: mcchampions <1309635304@qq.com> Date: Sat, 13 Jul 2024 21:55:17 +0800 Subject: [PATCH] Fix #4216 --- .../slimefun4/implementation/tasks/TickerTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/tasks/TickerTask.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/tasks/TickerTask.java index cbf6e42eb1..43196f04fe 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/tasks/TickerTask.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/tasks/TickerTask.java @@ -343,7 +343,7 @@ public void enableTicker(@Nonnull Location l) { Validate.notNull(l, "Location cannot be null!"); ChunkPosition chunk = new ChunkPosition(l.getWorld(), l.getBlockX() >> 4, l.getBlockZ() >> 4); - Set newValue = new HashSet<>(); + Set newValue = Collections.newSetFromMap(new ConcurrentHashMap<>()); Set oldValue = tickingLocations.putIfAbsent(chunk, newValue); /**