Merge pull request #2510 from BentoBoxWorld/2506_Override_island_distance_check

Do not fix island centers
This commit is contained in:
tastybento 2024-09-18 14:20:20 -07:00 committed by GitHub
commit 37ba89a00f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1275,8 +1275,10 @@ public class IslandsManager {
+ island.getRange() + "!\n" + "Island ID in database is " + island.getUniqueId() + ".\n"
+ "Island distance in config.yml cannot be changed mid-game! Fix config.yml or clean database.");
} else {
if (!plugin.getSettings().isOverrideSafetyCheck()) {
// Fix island center if it is off
fixIslandCenter(island);
}
islandCache.addIsland(island, true);
if (island.isSpawn()) {