mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Actually setup requirements
This commit is contained in:
parent
05fbb76e79
commit
0be71908e7
@ -235,7 +235,9 @@ public class GameRule<V> {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
requirements.add((Requirement) constructor.newInstance(api));
|
||||
Requirement requirement = (Requirement) constructor.newInstance(api);
|
||||
requirement.setup(section);
|
||||
requirements.add(requirement);
|
||||
} catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException
|
||||
| IllegalArgumentException | InvocationTargetException exception) {
|
||||
MessageUtil.log(api, "&4Requirement \"" + key + "\" is not implemented properly with a (DungeonsAPI) constructor.");
|
||||
|
Loading…
Reference in New Issue
Block a user