mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
fix #185
This commit is contained in:
parent
43c197316a
commit
ead9d79cb1
@ -38,6 +38,20 @@ class Creatures {
|
|||||||
|
|
||||||
$items = array();
|
$items = array();
|
||||||
Items::load();
|
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) {
|
foreach((array)Items::$items as $id => $item) {
|
||||||
$items[$item['name']] = $id;
|
$items[$item['name']] = $id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user