Store the item loaders on the plugin instance

This commit is contained in:
Sn0wStorm
2020-11-08 01:50:17 +01:00
parent 74171f78c9
commit 3fa16414d0
7 changed files with 44 additions and 42 deletions
+2 -2
View File
@@ -144,8 +144,8 @@ public class SimpleItem extends RecipeItem implements Ingredient {
}
// Needs to be called at Server start
public static void registerItemLoader() {
Ingredient.registerForItemLoader("SI", SimpleItem::loadFrom);
public static void registerItemLoader(P p) {
p.registerForItemLoader("SI", SimpleItem::loadFrom);
}
}