Skip to content

Commit

Permalink
Remove saving of greenhouses on exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 2, 2022
1 parent 0e76838 commit 06230e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/main/java/world/bentobox/greenhouses/Greenhouses.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public void onEnable() {
@Override
public void onDisable() {
if (manager != null) {
manager.saveGreenhouses();
if (manager.getEcoMgr() != null) manager.getEcoMgr().cancel();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@ private void loadGreenhouses() {
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
Expand Down

0 comments on commit 06230e4

Please sign in to comment.