Fixed long standing bug with ItemProvider (and scyther integration)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -27,11 +27,11 @@ class CustomItemsScyther : CustomItemsIntegration {
|
||||
Scyther.getInstance(),
|
||||
material,
|
||||
0,
|
||||
null,
|
||||
1.0,
|
||||
1,
|
||||
Int.MAX_VALUE,
|
||||
null,
|
||||
null
|
||||
"AUTOSELL",
|
||||
true
|
||||
)
|
||||
|
||||
val namespacedKey = NamespacedKeyUtils.create("scyther", key)
|
||||
|
||||
Reference in New Issue
Block a user