Changes island deletion loop to per second.

Previous setting was per tick, and the lowest value of 1 was set in the
config. By changing to per second, this value can be increased if
required. In testing, I see that smaller servers cannot cope even with a
setting of 1 per tick so I made this change. Also, island deletion can
occur slowly without issue.
This commit is contained in:
tastybento 2019-11-16 09:55:16 -08:00
parent 92bbc71928
commit 2f4dae52e4
3 changed files with 5 additions and 5 deletions

View File

@ -190,8 +190,8 @@ public class Settings implements ConfigObject {
@ConfigEntry(path = "island.paste-speed")
private int pasteSpeed = 128;
@ConfigComment("Number of chunks per world to regenerate per tick.")
@ConfigComment("If there is a nether and end then 3x this number will be regenerated per tick.")
@ConfigComment("Island deletion: Number of chunks per world to regenerate per second.")
@ConfigComment("If there is a nether and end then 3x this number will be regenerated per second.")
@ConfigComment("Smaller values will help reduce noticeable lag but will make deleting take longer.")
@ConfigComment("A setting of 0 will leave island blocks (not recommended).")
@ConfigEntry(path = "island.delete-speed", since = "1.7.0")

View File

@ -71,7 +71,7 @@ public class DeleteIslandChunks {
});
}
inDelete = false;
}, 0L, 1L);
}, 0L, 20L);
}
private void processChunk(GameModeAddon gm, World world, int x, int z) {

View File

@ -124,8 +124,8 @@ island:
# On the contrary, greater values will make pasting take less time, but this benefit is quickly severely impacted by the
# resulting amount of chunks that must be loaded to fulfill the process, which often causes the server to hang out.
paste-speed: 128
# Number of chunks per world to regenerate per tick.
# If there is a nether and end then 3x this number will be regenerated per tick.
# Number of chunks per world to regenerate per second.
# If there is a nether and end then 3x this number will be regenerated per second.
# Smaller values will help reduce noticeable lag but will make deleting take longer.
# A setting of 0 will leave island blocks (not recommended).
# Added since 1.7.0.