Areatrigger/Names

* fix unnamed areatrigger after fetching them from DB and not clientside
Mail/Names
 * fix unnamed mails after fetching them from DB and not clientside
This commit is contained in:
Sarjuuk
2020-02-24 01:46:50 +01:00
parent 3ff855afe8
commit aa66a7644b
12 changed files with 23 additions and 21 deletions

View File

@@ -384,12 +384,10 @@ class ZonePage extends GenericPage
if (!$tpl)
continue;
$n = Util::localizedString($tpl, 'name');
$addToSOM('areatrigger', array(
'coords' => [[$spawn['posX'], $spawn['posY']]],
'level' => $spawn['floor'],
'name' => $tpl['name'] ?: 'Unnamed AT #'.$spawn['typeId'],
'name' => Util::localizedString($tpl, 'name', true, true),
'type' => TYPE_AREATRIGGER,
'id' => $spawn['typeId'],
'description' => 'Type: '.Lang::areatrigger('types', $tpl['type'])