Fix CustomItemResolver causing a StackOverflowError (#3022)

CustomItemResolver was fetching the custom item from the item database instead of the resolved custom item which caused a StackOverflowError.

Fixes #3018.
This commit is contained in:
Josh Roy 2020-02-18 15:20:53 -05:00 committed by GitHub
parent 7808b21496
commit 2314bf8bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ public class CustomItemResolver implements IItemDb.ItemResolver, IConf {
public ItemStack apply(String item) {
if (map.containsKey(item)) {
try {
return ess.getItemDb().get(item);
return ess.getItemDb().get(map.get(item));
} catch (Exception ignored) {}
}