mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Overhauled text translations
This commit is contained in:
@@ -260,9 +260,11 @@ def pbGetBasicMapNameFromId(id)
|
||||
end
|
||||
|
||||
def pbGetMapNameFromId(id)
|
||||
name = pbGetMessage(MessageTypes::MapNames, id)
|
||||
name = pbGetBasicMapNameFromId(id) if nil_or_empty?(name)
|
||||
name.gsub!(/\\PN/, $player.name) if $player
|
||||
name = GameData::MapMetadata.get(id)&.name
|
||||
if nil_or_empty?(name)
|
||||
name = pbGetBasicMapNameFromId(id)
|
||||
name.gsub!(/\\PN/, $player.name) if $player
|
||||
end
|
||||
return name
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user