mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 16:16:46 +00: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
e4df2813f1
commit
06be99fa15
@ -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