Skip to content

Commit 37ba89a

Browse files
authored
Merge pull request #2510 from BentoBoxWorld/2506_Override_island_distance_check
Do not fix island centers
2 parents e90755d + d2410a5 commit 37ba89a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/world/bentobox/bentobox/managers/IslandsManager.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1275,8 +1275,10 @@ else if (!plugin.getSettings().isOverrideSafetyCheck() && island.getWorld() != n
12751275
+ island.getRange() + "!\n" + "Island ID in database is " + island.getUniqueId() + ".\n"
12761276
+ "Island distance in config.yml cannot be changed mid-game! Fix config.yml or clean database.");
12771277
} else {
1278-
// Fix island center if it is off
1279-
fixIslandCenter(island);
1278+
if (!plugin.getSettings().isOverrideSafetyCheck()) {
1279+
// Fix island center if it is off
1280+
fixIslandCenter(island);
1281+
}
12801282
islandCache.addIsland(island, true);
12811283

12821284
if (island.isSpawn()) {

0 commit comments

Comments
 (0)