Support Berry names without an alias

This commit is contained in:
Marty-D 2016-06-08 11:33:57 -04:00 committed by Marty-D
parent 6608dd5846
commit 874ab9fb99

View File

@ -479,6 +479,9 @@ module.exports = (() => {
name = this.data.Aliases[id];
id = toId(name);
}
if (id && !this.data.Items[id] && this.data.Items[id + 'berry']) {
id += 'berry';
}
item = {};
if (id && this.data.Items[id]) {
item = this.data.Items[id];