From d179b5c7dc01ccc8e2a7b43f01a5fb356287febd Mon Sep 17 00:00:00 2001 From: FpguDhk <35809384+341101@users.noreply.github.com> Date: Tue, 10 May 2022 14:15:17 +0800 Subject: [PATCH] Fix the decision statement of adding map marker. (#763) * Fix the Chinese messy code problem. * Fix the decision statement of adding map marker. --- .../game/managers/MapMarkManager/MapMarksManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/managers/MapMarkManager/MapMarksManager.java b/src/main/java/emu/grasscutter/game/managers/MapMarkManager/MapMarksManager.java index 5249f59d9..d014ce204 100644 --- a/src/main/java/emu/grasscutter/game/managers/MapMarkManager/MapMarksManager.java +++ b/src/main/java/emu/grasscutter/game/managers/MapMarkManager/MapMarksManager.java @@ -46,7 +46,7 @@ public class MapMarksManager { public boolean addMapMark(MapMark mapMark) { if (mapMarks.size() < mapMarkMaxCount) { - if (!mapMarks.containsKey(mapMark.getPosition())) { + if (!mapMarks.containsKey(getMapMarkKey(mapMark.getPosition()))) { mapMarks.put(getMapMarkKey(mapMark.getPosition()), mapMark); return true; }