Skip to content

Commit

Permalink
Fix stop plugin skyblock
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed Nov 15, 2024
1 parent 0357ceb commit 7e9222d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ private void initializeSpiralTable() {
for (int i = 1; i < ConfigToml.maxIsland; i++) {
Position position = RegionUtils.getPositionNewIsland(i);
try {
if (api.getDatabaseLoader() == null) {
logger.log(Level.ERROR, "Cannot get connection to the database.");
break;
}
executeQuery(INSERT_SPIRAL.formatted(database),
List.of(i, position.x() * distancePerIsland, position.z() * distancePerIsland));
} catch (DatabaseException e) {
Expand Down

0 comments on commit 7e9222d

Please sign in to comment.