Fixes round up to 16 for island distance bug.

This commit is contained in:
tastybento 2019-04-29 19:30:31 -07:00
parent 603e525013
commit 54f1ce0940

View File

@ -223,7 +223,11 @@ public class IslandWorldManager {
* @return the islandDistance
*/
public int getIslandDistance(@NonNull World world) {
return gameModes.get(world).getWorldSettings().getIslandDistance();
return getNextMultipleOf16(gameModes.get(world).getWorldSettings().getIslandDistance());
}
private int getNextMultipleOf16(int num) {
return num + 16 - (num % 16);
}
/**