Fixed long standing bug with ItemProvider (and scyther integration)

This commit is contained in:
Auxilor
2022-09-14 21:08:14 +01:00
parent dfe2f1361b
commit 88f974fd10
2 changed files with 5 additions and 5 deletions

View File

@@ -230,8 +230,8 @@ public final class Items {
String reformattedKey = keyID.replace("__", ":");
item = provider.provideForKey(reformattedKey);
if (item instanceof EmptyTestableItem || item == null) {
part = provider.provideForKey(reformattedKey);
if (part instanceof EmptyTestableItem || part == null) {
return new EmptyTestableItem();
}
registerCustomItem(namespacedKey, item);