This commit is contained in:
ch-yx authored and gnembon committed 2023-12-05 22:43:41 +01:00
1 parent e1071ab668
commit 5b33291c28
2 files changed
+5 -2

No files matched your search

@@ -1483,11 +1483,14 @@ public class EntityValue extends Value
return;
}
int duration = (int) NumericValue.asNumber(list.get(1)).getLong();
if (duration <= 0 && duration != -1)
if (duration == 0)
{
le.removeEffect(effect);
return;
}
if (duration < 0 || Float.isInfinite(NumericValue.asNumber(list.get(1)).getFloat())){
duration = -1;
}
int amplifier = 0;
if (list.size() > 2)
{