From 1a0a2e13fab4bd7c9e8bb6168c422d8582ad0588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=AA=E8=81=AA?= <178666380@qq.com> Date: Mon, 31 Jul 2017 23:31:05 +0800 Subject: [PATCH] add new tick rule of tileentity --- .../cauldron/configuration/CauldronConfig.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/minecraftforge/cauldron/configuration/CauldronConfig.java b/src/main/java/net/minecraftforge/cauldron/configuration/CauldronConfig.java index acf8aff..b9c090a 100644 --- a/src/main/java/net/minecraftforge/cauldron/configuration/CauldronConfig.java +++ b/src/main/java/net/minecraftforge/cauldron/configuration/CauldronConfig.java @@ -46,6 +46,7 @@ public class CauldronConfig extends ConfigBase public final IntSetting largeBoundingBoxLogSize = new IntSetting(this, "settings.entity-bounding-box-max-size", 1000, "Max size of an entity's bounding box before removing it (either being too large or bugged and 'moving' too fast)"); public final IntSetting entityMaxSpeed = new IntSetting(this, "settings.entity-max-speed", 100, "Square of the max speed of an entity before removing it"); public final BoolSetting removeErroringBlocks=new BoolSetting(this,"setting.remove-erroring-blocks",true,"Set this to true to remove any Blocks that throws an error in its update method instead of closing the server and reporting a crash log."); + public final BoolSetting tickTEOnlyChunkActive=new BoolSetting(this,"setting.tick-tileentity-only-chunk-active",false,"Set this to true,only if the chunk is active, tileentity can be tick."); // Debug settings public final BoolSetting enableThreadContentionMonitoring = new BoolSetting(this, "debug.thread-contention-monitoring", false, "Set true to enable Java's thread contention monitoring for thread dumps"); @@ -108,6 +109,10 @@ public class CauldronConfig extends ConfigBase settings.put(modPacketPlace.path,modPacketPlace); settings.put(modPacketInteract.path,modPacketInteract); + + settings.put(removeErroringBlocks.path,removeErroringBlocks); + settings.put(tickTEOnlyChunkActive.path,tickTEOnlyChunkActive); + load(); }