mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 12:33:21 +08:00
Fix the decision statement of adding map marker. (#763)
* Fix the Chinese messy code problem. * Fix the decision statement of adding map marker.
This commit is contained in:
parent
01a33906d3
commit
d179b5c7dc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user