Remove saving of greenhouses on exit.

https://github.com/BentoBoxWorld/Greenhouses/issues/85
This commit is contained in:
tastybento 2022-01-01 16:03:04 -08:00
parent 0e76838721
commit 06230e4957
2 changed files with 0 additions and 9 deletions

View File

@ -93,7 +93,6 @@ public class Greenhouses extends Addon {
@Override
public void onDisable() {
if (manager != null) {
manager.saveGreenhouses();
if (manager.getEcoMgr() != null) manager.getEcoMgr().cancel();
}
}

View File

@ -126,14 +126,6 @@ public class GreenhouseManager implements Listener {
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
* @param gh - greenhouse