Skip to content

Commit

Permalink
Fixed Items.java instanciation by correcting name in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
seaside1 committed Aug 4, 2022
1 parent 97647bf commit 4104553
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ private void createRuleInstances() {
JRuleItemRegistry.clear();
// Reload Items class - this will also instantiate all items and load them to the registry
try {
Class<?> cls = Class.forName(config.getGeneratedItemPackage() + ".Items", true, loader);
Class<?> cls = Class.forName(config.getGeneratedItemPackage() + ".JRuleItems", true, loader);
cls.getDeclaredConstructor().newInstance();
logger.info("Instantiated Items class");
logger.info("Instantiated JRuleItems class");
} catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InstantiationException
| InvocationTargetException e) {
logger.error("Could not instantiate Items file {}", e.toString());
logger.error("Could not instantiate JRuleItems file {}", e.toString());
}

// Load rules that refer to the items
Expand Down

0 comments on commit 4104553

Please sign in to comment.