mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-30 14:33:28 +01:00
Fix plugin live reloading
This commit is contained in:
parent
8f6c3c6710
commit
bf4368c9be
@ -74,6 +74,7 @@ public class EpicFarming extends SongodaPlugin {
|
||||
private FarmTask farmTask;
|
||||
|
||||
private EntityUtils entityUtils;
|
||||
private static EpicFarming instance;
|
||||
|
||||
@Override
|
||||
public void onPluginLoad() {
|
||||
@ -94,6 +95,7 @@ public class EpicFarming extends SongodaPlugin {
|
||||
|
||||
@Override
|
||||
public void onPluginEnable() {
|
||||
instance = this;
|
||||
// Run Songoda Updater
|
||||
SongodaCore.registerPlugin(this, 21, XMaterial.WHEAT);
|
||||
|
||||
@ -390,11 +392,7 @@ public class EpicFarming extends SongodaPlugin {
|
||||
return this.entityUtils;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link EpicFarming#getPlugin(Class)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static EpicFarming getInstance() {
|
||||
return getPlugin(EpicFarming.class);
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user