Commented CustomItem

This commit is contained in:
Auxilor
2022-04-27 13:16:53 +01:00
parent 106c9b37fc
commit f17f67227f

View File

@@ -48,6 +48,11 @@ public class CustomItem implements TestableItem {
this.test = test;
this.item = item;
/*
This runs the next tick, because it's very likely that the test can't return true
immediately after due to registration order; so eco waits until the item should be
working in order to check.
*/
Eco.getHandler().getEcoPlugin().getScheduler().runLater(() -> {
if (!matches(getItem())) {
Bukkit.getLogger().severe("Item with key " + key + " is invalid!");