old-bugs

Minecraft: Better than Adventure! mod that brings back bugs from older versions
git clone git://memoryshards.xyz/old-bugs.git
Log | Files | Refs | README | LICENSE

commit 2642d566aca4d089a52cfaf5ccf218a302c9857e
parent 6bf6022cc1cfbae1b9b919fc018c22fa14a0c408
Author: BuildTools <unconfigured@null.spigotmc.org>
Date:   Mon,  6 Feb 2023 22:45:27 +0300

Tiny fix

Diffstat:
Msrc/main/java/eosl/nostalgic_bugs/Settings.java | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/eosl/nostalgic_bugs/Settings.java b/src/main/java/eosl/nostalgic_bugs/Settings.java @@ -15,7 +15,7 @@ public class Settings public final boolean m_ladderGaps; public final boolean m_minecartBoosters; public final boolean m_southEastRuleForLiquids; - @Range(from = 0, to = Integer.MAX_VALUE) + @Range(from = 1, to = Integer.MAX_VALUE) public final int m_fireTickRate; public final boolean m_infiniteFireSpread; @@ -50,8 +50,8 @@ public class Settings int fireTickRate = getProperty(properties, "fireTickRate", 10); m_infiniteFireSpread = getProperty(properties, "infiniteFireSpread", true); - if (fireTickRate < 0) { - NostalgicBugsMod.g_logger.error("Option [" + "fireTickRate" + "] is negative"); + if (fireTickRate < 1) { + NostalgicBugsMod.g_logger.error("Option [" + "fireTickRate" + "] must be greater than 0. It set now ot 10"); m_fireTickRate = 10; } else @@ -73,8 +73,8 @@ public class Settings int fireTickRate = getProperty(a_settings, "fireTickRate", 10); m_infiniteFireSpread = getProperty(a_settings, "infiniteFireSpread", true); - if (fireTickRate < 0) { - NostalgicBugsMod.g_logger.error("Option [" + "fireTickRate" + "] is negative"); + if (fireTickRate < 1) { + NostalgicBugsMod.g_logger.error("Option [" + "fireTickRate" + "] must be greater than 0. It set now ot 10"); m_fireTickRate = 10; } else