From 35acd06d4b52e5c6407f1c5c378997c57ac34f6d Mon Sep 17 00:00:00 2001 From: Mumfrey Date: Wed, 20 Jan 2016 11:52:38 +0000 Subject: [PATCH] Fix erroneous warning in InjectorGroupInfo --- .../spongepowered/asm/mixin/injection/InjectorGroupInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spongepowered/asm/mixin/injection/InjectorGroupInfo.java b/src/main/java/org/spongepowered/asm/mixin/injection/InjectorGroupInfo.java index 07f9697b..a9fdf162 100644 --- a/src/main/java/org/spongepowered/asm/mixin/injection/InjectorGroupInfo.java +++ b/src/main/java/org/spongepowered/asm/mixin/injection/InjectorGroupInfo.java @@ -225,7 +225,7 @@ public class InjectorGroupInfo { throw new IllegalArgumentException("Cannot set zero or negative value for injector group max count. Attempted to set max=" + max + " on " + this); } - if (this.maxCallbackCount > 0 && this.maxCallbackCount != max) { + if (this.maxCallbackCount < Integer.MAX_VALUE && this.maxCallbackCount != max) { LogManager.getLogger("mixin").warn("Conflicting max value '{}' on @Group({}), previously specified {}", max, this.name, this.maxCallbackCount); }