mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Rewrote mkxp.json, fix crash when entering a map with no map metadata, fixed Battle Factory menu text misalignment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user