mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-22 18:16:26 +01:00
Adds default constructor to SpawnerStackImpl, fix async saving issues on shutdown
This commit is contained in:
parent
abd41fc602
commit
098c819b1c
@ -114,8 +114,9 @@ public class UltimateStacker extends SongodaPlugin {
|
||||
public void onPluginDisable() {
|
||||
this.stackingTask.stop();
|
||||
this.stackingTask = null;
|
||||
this.dataManager.saveBatch(this.spawnerStackManager.getStacksData());
|
||||
this.dataManager.saveBatch(this.blockStackManager.getStacksData());
|
||||
this.dataManager.saveBatchSync(this.spawnerStackManager.getStacksData());
|
||||
this.dataManager.saveBatchSync(this.blockStackManager.getStacksData());
|
||||
this.dataManager.shutdownNow();
|
||||
HologramManager.removeAllHolograms();
|
||||
Async.shutdown();
|
||||
}
|
||||
|
@ -32,6 +32,9 @@ public class SpawnerStackImpl implements SpawnerStack {
|
||||
|
||||
private SSpawner sSpawner;
|
||||
|
||||
public SpawnerStackImpl() {
|
||||
}
|
||||
|
||||
public SpawnerStackImpl(Location location, int amount) {
|
||||
this.location = location;
|
||||
this.amount = amount;
|
||||
|
Loading…
Reference in New Issue
Block a user