Fixed bug with unloaded plugins

This commit is contained in:
Auxilor
2021-07-26 18:21:52 +01:00
parent cf01abcf87
commit a59c05174f
2 changed files with 17 additions and 0 deletions

View File

@@ -36,6 +36,15 @@ public final class Items {
REGISTRY.put(key, part);
}
/**
* Remove an item.
*
* @param key The key of the recipe part.
*/
public void removeCustomItem(@NotNull final NamespacedKey key) {
REGISTRY.remove(key);
}
/**
* Lookup item from string.
* <p>