Pull island distance from settings instead of island

This commit is contained in:
tastybento 2019-05-02 21:23:46 -07:00
parent 800c111fd8
commit 4e0e283ace

View File

@ -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) {