1
0
forked from xjboss/KCauldronX

Add expermintal feature: tileEnitity list recreation each tick

This commit is contained in:
Sergey Shatunov
2016-01-17 17:15:55 +07:00
parent 1817b56ba3
commit 097252b5bf
4 changed files with 63 additions and 24 deletions

View File

@ -29,6 +29,10 @@ public class KCauldronConfig extends ConfigBase {
public BoolSetting commonAllowNetherPortal = new BoolSetting(this,
"common.allowNetherPortalBesidesOverworld", false, "Allow nether portals in dimensions besides overworld");
public BoolSetting experimentalTileEntityListRecreation = new BoolSetting(this,
"experimental.tileEntityListRecreation", false, "EXPERIMENTAL! Recreate list of TE each tick.");
public static boolean tileEntityListRecreation;
public KCauldronConfig() {
super("kcauldron.yml", "kc");
@ -41,6 +45,7 @@ public class KCauldronConfig extends ConfigBase {
register(loggingMaterialInjection);
register(loggingClientModList);
register(commonAllowNetherPortal);
register(experimentalTileEntityListRecreation);
load();
}
@ -82,5 +87,6 @@ public class KCauldronConfig extends ConfigBase {
"Could not load " + this.configFile);
ex.printStackTrace();
}
tileEntityListRecreation = experimentalTileEntityListRecreation.getValue();
}
}

View File

@ -24,7 +24,7 @@ public class TerminalConsoleWriterThread implements Runnable {
while (true) {
message = QueueLogAppender.getNextLogEvent("TerminalConsole");
if (message == null) {
continue;
Thread.yield();
}
try {