Rewrote mkxp.json, fix crash when entering a map with no map metadata, fixed Battle Factory menu text misalignment

This commit is contained in:
Maruno17
2023-07-01 22:11:02 +01:00
parent 2078f6b116
commit 2986ab3ebb
4 changed files with 136 additions and 412 deletions

View File

@@ -257,7 +257,7 @@ def pbGetBasicMapNameFromId(id)
end
def pbGetMapNameFromId(id)
name = GameData::MapMetadata.get(id)&.name
name = GameData::MapMetadata.try_get(id)&.name
if nil_or_empty?(name)
name = pbGetBasicMapNameFromId(id)
name.gsub!(/\\PN/, $player.name) if $player