From 10dd565b2dfedaf6d4c6b4df5dce4a8567cf878c Mon Sep 17 00:00:00 2001 From: Elier <71361901+Elierrr@users.noreply.github.com> Date: Sat, 2 Apr 2022 19:52:35 -0400 Subject: [PATCH] Change default value of tile ticking time (#393) * Change default value of tile ticking time * Update NachoConfig.java --- .../java/me/elier/nachospigot/config/NachoConfig.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/NachoSpigot-Server/src/main/java/me/elier/nachospigot/config/NachoConfig.java b/NachoSpigot-Server/src/main/java/me/elier/nachospigot/config/NachoConfig.java index 68259a1be..9a1748c9e 100644 --- a/NachoSpigot-Server/src/main/java/me/elier/nachospigot/config/NachoConfig.java +++ b/NachoSpigot-Server/src/main/java/me/elier/nachospigot/config/NachoConfig.java @@ -50,7 +50,7 @@ public static void init(File configFile) { File old_config = new File("nacho.json"); if(old_config.exists()) migrate(old_config); - int configVersion = 6; // Update this every new configuration update + int configVersion = 7; // Update this every new configuration update version = getInt("config-version", configVersion); set("config-version", configVersion); c.setHeader(HEADER); @@ -356,10 +356,15 @@ private static void enableFastMath() { enableFastMath = getBoolean("settings.enable-fastmath", false); } - public static int tileEntityTickingTime = 20; + public static int tileEntityTickingTime = 1; private static void tileEntityTickingTime() { - tileEntityTickingTime = getInt("settings.tile-entity-ticking-time", 20); + int i = getInt("settings.tile-entity-ticking-time", 1); + if(version < 7 && i == 20) { + i = 1; + set("settings.tile-entity-ticking-time", 1); + } + tileEntityTickingTime = i; } public static int itemDirtyTicks;