Fixes config offset bug for island location.

Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1105
This commit is contained in:
tastybento 2020-01-07 15:30:21 -08:00
parent a3a0efb3a3
commit 90ad75baa9

View File

@ -910,8 +910,8 @@ public class IslandsManager {
// Island is off grid
x = Math.round((double) x / distance) * distance + plugin.getIWM().getIslandXOffset(world);
z = Math.round((double) z / distance) * distance + plugin.getIWM().getIslandZOffset(world);
island.setCenter(new Location(world, x, island.getCenter().getBlockY(), z));
}
island.setCenter(new Location(world, x, island.getCenter().getBlockY(), z));
}
/**