Fix BlueMap hook not being registered on Fabric, close #453

This commit is contained in:
William committed 2023-07-15 13:52:23 +01:00
1 parent 4c056d1be2
commit ea23bbd53e
6 files changed
+19 -11

No files matched your search

@@ -39,8 +39,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
/**
@@ -58,8 +58,8 @@ public class BlueMapHook extends MapHook {
@Override
public void initialize() {
BlueMapAPI.onEnable(api -> {
this.publicHomesMarkerSets = new HashMap<>();
this.warpsMarkerSets = new HashMap<>();
this.publicHomesMarkerSets = new ConcurrentHashMap<>();
this.warpsMarkerSets = new ConcurrentHashMap<>();
for (World world : plugin.getWorlds()) {
this.editMapWorld(world, (mapWorld -> {