3
0

Cap chunk generation to 1 chunk per tick (configurable)

This commit is contained in:
Sergey Shatunov
2016-03-16 12:01:28 +07:00
parent 232bc98881
commit 8d2ba00f70
9 changed files with 261 additions and 60 deletions

View File

@ -11,7 +11,15 @@
import com.google.common.base.Joiner;
import com.google.common.base.Strings;
@@ -282,6 +286,7 @@
@@ -245,6 +249,7 @@
public void onPostServerTick()
{
bus().post(new TickEvent.ServerTickEvent(Phase.END));
+ kcauldron.ChunkGenerator.INSTANCE.chunkGeneratorCycle(); // KCauldron
}
/**
@@ -282,6 +287,7 @@
{
Loader.instance().serverStarted();
sidedDelegate.allowLogins();
@ -19,7 +27,7 @@
}
public void handleServerStopping()
@@ -385,10 +390,11 @@
@@ -385,10 +391,11 @@
{
return;
}
@ -32,7 +40,7 @@
handlerSet.add(handler);
handlerToCheck = new WeakReference<SaveHandler>(handler); // for confirmBackupLevelDatUse
Map<String,NBTBase> additionalProperties = Maps.newHashMap();
@@ -496,7 +502,13 @@
@@ -496,7 +503,13 @@
public String getModName()
{
@ -47,7 +55,7 @@
modNames.add("fml");
if (!noForge)
{
@@ -540,8 +552,17 @@
@@ -540,8 +553,17 @@
bus().post(new InputEvent.KeyInputEvent());
}