mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Fixed an issue with trigger loading
This commit is contained in:
parent
d9dfa21592
commit
79cedee0d8
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user