Update EntityValue.java

This commit is contained in:
ch-yx authored and gnembon committed 2023-12-05 22:43:41 +01:00
1 parent f13db30bb4
commit f7da8c2571
1 file changed
+1 -1
@@ -1483,7 +1483,7 @@ public class EntityValue extends Value
return;
}
int duration = (int) NumericValue.asNumber(list.get(1)).getLong();
if (duration <= 0)
if (duration <= 0 && duration != -1)
{
le.removeEffect(effect);
return;