mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-02 21:41:21 +01:00
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:
parent
7808b21496
commit
2314bf8bd4
@ -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) {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user