Skip to content

Commit 60ccf83

Browse files
committed
Fix spawn radius of 0 causing world load to hang
1 parent 6e16383 commit 60ccf83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/notstirred/spawnradius/mixin/MixinMinecraftServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private int replaceRequiredChunksCount(int original) {
3131
}
3232

3333
private static int calculateRequiredChunksCount(int radius) {
34-
if (radius < 0) {
34+
if (radius <= 0) {
3535
SpawnRadius.LOGGER.info("Replaced required chunks to load with: " + 0);
3636
return 0;
3737
}

0 commit comments

Comments
 (0)