fix: negative ticks might not be a good idea

This commit is contained in:
2025-12-03 03:18:12 +01:00
parent 11649caaee
commit 88620d9d24

View File

@@ -7,9 +7,9 @@ import net.minecraft.world.GameRules;
public class Tweaks implements ModInitializer { public class Tweaks implements ModInitializer {
public static final GameRules.Key<GameRules.IntRule> ENTITY_PORTAL_COOLDOWN = public static final GameRules.Key<GameRules.IntRule> 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<GameRules.IntRule> ENDER_PEARL_DAMAGE = public static final GameRules.Key<GameRules.IntRule> 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 @Override
public void onInitialize() { public void onInitialize() {
} }