mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
fix #185
This commit is contained in:
parent
43c197316a
commit
ead9d79cb1
@ -38,6 +38,20 @@ class Creatures {
|
||||
|
||||
$items = array();
|
||||
Items::load();
|
||||
if (empty(Items::$items)) {
|
||||
if(Items::loadFromXML()) {
|
||||
success('Successfully loaded items.');
|
||||
}
|
||||
}
|
||||
|
||||
// once again
|
||||
Items::load();
|
||||
|
||||
if (empty(Items::$items)) {
|
||||
error('Fatal error. Please report to www.github.com/slawkens/myaac');
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach((array)Items::$items as $id => $item) {
|
||||
$items[$item['name']] = $id;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user