Fixed an issue with trigger loading

This commit is contained in:
Indyuce 2022-03-18 22:30:34 +01:00
parent d9dfa21592
commit 79cedee0d8

View File

@ -82,7 +82,7 @@ public abstract class Recipe {
try { try {
Trigger trigger = MMOItems.plugin.getCrafting().getTrigger(new MMOLineConfig(format)); Trigger trigger = MMOItems.plugin.getCrafting().getTrigger(new MMOLineConfig(format));
Validate.notNull(trigger, "Could not match trigger"); Validate.notNull(trigger, "Could not match trigger");
onUse.add(trigger); collection.add(trigger);
} catch (IllegalArgumentException exception) { } catch (IllegalArgumentException exception) {
throw new IllegalArgumentException("Could not load " + triggerType + " trigger '" + format + "': " + exception.getMessage()); throw new IllegalArgumentException("Could not load " + triggerType + " trigger '" + format + "': " + exception.getMessage());
} }