Commit 443bd60b authored by Giant's avatar Giant
Browse files

Fix possible NPE in economy engine.

parent 11cd20a0
......@@ -105,6 +105,7 @@ public class Eco {
this.plugin = plugin;
try {
this.Engine = (iEco)engine.getGameClass().getConstructor(GiantCore.class).newInstance(plugin);
this.engine = engine;
}catch(NoSuchMethodException ex) {
plugin.getLogger().log(Level.SEVERE, null, ex);
}catch(InstantiationException ex) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment