From 88620d9d245d8515b400caf045b81346a547e095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Miklo=C5=A1?= Date: Wed, 3 Dec 2025 03:18:12 +0100 Subject: [PATCH] fix: negative ticks might not be a good idea --- src/main/java/systems/brn/tweaks/Tweaks.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/systems/brn/tweaks/Tweaks.java b/src/main/java/systems/brn/tweaks/Tweaks.java index 2034fa5..414fd53 100644 --- a/src/main/java/systems/brn/tweaks/Tweaks.java +++ b/src/main/java/systems/brn/tweaks/Tweaks.java @@ -7,9 +7,9 @@ import net.minecraft.world.GameRules; public class Tweaks implements ModInitializer { public static final GameRules.Key ENTITY_PORTAL_COOLDOWN = - GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300)); + GameRuleRegistry.register("entityPortalCooldown", GameRules.Category.MOBS, GameRuleFactory.createIntRule(300, 0, Integer.MAX_VALUE)); public static final GameRules.Key ENDER_PEARL_DAMAGE = - GameRuleRegistry.register("enderPearlDamage", GameRules.Category.PLAYER, GameRuleFactory.createIntRule(5)); + GameRuleRegistry.register("enderPearlDamage", GameRules.Category.PLAYER, GameRuleFactory.createIntRule(5, 0, Integer.MAX_VALUE)); @Override public void onInitialize() { }