Commit 4e73b05c authored by Giant's avatar Giant
Browse files

Fix bug causing Eco to be unable to load it's engines.

parent 45136d43
......@@ -104,7 +104,7 @@ public class Eco {
public Eco(GiantCore plugin, Engines engine) {
this.plugin = plugin;
try {
this.Engine = (iEco)engine.getGameClass().getConstructor(iEco.class).newInstance(this);
this.Engine = (iEco)engine.getGameClass().getConstructor(GiantCore.class).newInstance(plugin);
}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