mirror of
https://github.com/BentoBoxWorld/Greenhouses.git
synced 2025-02-08 08:11:23 +01:00
Remove saving of greenhouses on exit.
https://github.com/BentoBoxWorld/Greenhouses/issues/85
This commit is contained in:
parent
0e76838721
commit
06230e4957
@ -93,7 +93,6 @@ public class Greenhouses extends Addon {
|
|||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
if (manager != null) {
|
if (manager != null) {
|
||||||
manager.saveGreenhouses();
|
|
||||||
if (manager.getEcoMgr() != null) manager.getEcoMgr().cancel();
|
if (manager.getEcoMgr() != null) manager.getEcoMgr().cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -126,14 +126,6 @@ public class GreenhouseManager implements Listener {
|
|||||||
toBeRemoved.forEach(handler::deleteObject);
|
toBeRemoved.forEach(handler::deleteObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Saves all the greenhouses to database
|
|
||||||
*/
|
|
||||||
public void saveGreenhouses() {
|
|
||||||
addon.log("Saving greenhouses...");
|
|
||||||
map.getGreenhouses().forEach(handler::saveObjectAsync);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the greenhouse from the world and resets biomes
|
* Removes the greenhouse from the world and resets biomes
|
||||||
* @param gh - greenhouse
|
* @param gh - greenhouse
|
||||||
|
Loading…
Reference in New Issue
Block a user