mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-26 20:55:41 +01:00
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:
parent
92bbc71928
commit
2f4dae52e4
@ -190,8 +190,8 @@ public class Settings implements ConfigObject {
|
|||||||
@ConfigEntry(path = "island.paste-speed")
|
@ConfigEntry(path = "island.paste-speed")
|
||||||
private int pasteSpeed = 128;
|
private int pasteSpeed = 128;
|
||||||
|
|
||||||
@ConfigComment("Number of chunks per world to regenerate 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 tick.")
|
@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("Smaller values will help reduce noticeable lag but will make deleting take longer.")
|
||||||
@ConfigComment("A setting of 0 will leave island blocks (not recommended).")
|
@ConfigComment("A setting of 0 will leave island blocks (not recommended).")
|
||||||
@ConfigEntry(path = "island.delete-speed", since = "1.7.0")
|
@ConfigEntry(path = "island.delete-speed", since = "1.7.0")
|
||||||
|
@ -71,7 +71,7 @@ public class DeleteIslandChunks {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
inDelete = false;
|
inDelete = false;
|
||||||
}, 0L, 1L);
|
}, 0L, 20L);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processChunk(GameModeAddon gm, World world, int x, int z) {
|
private void processChunk(GameModeAddon gm, World world, int x, int z) {
|
||||||
|
@ -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
|
# 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.
|
# resulting amount of chunks that must be loaded to fulfill the process, which often causes the server to hang out.
|
||||||
paste-speed: 128
|
paste-speed: 128
|
||||||
# Number of chunks per world to regenerate 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 tick.
|
# 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.
|
# Smaller values will help reduce noticeable lag but will make deleting take longer.
|
||||||
# A setting of 0 will leave island blocks (not recommended).
|
# A setting of 0 will leave island blocks (not recommended).
|
||||||
# Added since 1.7.0.
|
# Added since 1.7.0.
|
||||||
|
Loading…
Reference in New Issue
Block a user