mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
Keep regen off the server thread and move it to std
- Load regen chunks asynchronously and skip chunks that were never generated - Hold a generation stage per regen chunk so a hotload waits for it - Count skipped chunks apart in the regen progress and summary - Log each studio hotload with its pack and duration - Move regen from /iris dev to /iris std on Bukkit and modded
This commit is contained in:
1 parent
ed037ea40b
commit
e0aeabd520
10 files changed
+248
-110
No files matched your search
+17
@@ -206,6 +206,23 @@ public class IrisModdedCommandParityTest {
|
||||
assertNotNull("pack cp", child(child(iris, "pk"), "cp").getCommand());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void regenLivesUnderStudio() {
|
||||
SharedConstants.tryDetectVersion();
|
||||
Bootstrap.bootStrap();
|
||||
CommandDispatcher<CommandSourceStack> dispatcher = new CommandDispatcher<>();
|
||||
|
||||
IrisModdedCommands.register(new NativeCommandRegistration(dispatcher));
|
||||
|
||||
CommandNode<CommandSourceStack> iris = child(dispatcher.getRoot(), "iris");
|
||||
assertNotNull("std regen", child(child(iris, "std"), "regen").getCommand());
|
||||
assertNotNull("studio rg radius", child(child(child(iris, "studio"), "rg"), "radius").getCommand());
|
||||
assertNull("top-level regen", iris.getChild("regen"));
|
||||
assertNull("top-level rg", iris.getChild("rg"));
|
||||
assertTrue(ModdedCommandHelp.consoleLines("studio").stream().anyMatch((String line) ->
|
||||
line.startsWith("/iris studio regen [radius] (rg) - ")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void consoleHelpListsEveryEntryWithInlineUsageAndDescription() {
|
||||
List<String> root = ModdedCommandHelp.consoleLines("");
|
||||
|
||||
Reference in new issue
Block a user