mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Fixes round up to 16 for island distance bug.
This commit is contained in:
parent
603e525013
commit
54f1ce0940
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user