mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-06-24 13:54:51 +02:00
Pull island distance from settings instead of island
This commit is contained in:
parent
800c111fd8
commit
4e0e283ace
|
@ -799,7 +799,7 @@ public class IslandsManager {
|
|||
if (world == null || island.getCenter() == null || !plugin.getIWM().inWorld(world)) {
|
||||
return;
|
||||
}
|
||||
int distance = island.getRange() * 2;
|
||||
int distance = plugin.getIWM().getIslandDistance(island.getWorld()) * 2;
|
||||
long x = ((long) island.getCenter().getBlockX()) - plugin.getIWM().getIslandXOffset(world);
|
||||
long z = ((long) island.getCenter().getBlockZ()) - plugin.getIWM().getIslandZOffset(world);
|
||||
if (x % distance != 0 || z % distance != 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user