remove inf check

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

No files matched your search

@@ -1488,7 +1488,7 @@ public class EntityValue extends Value
le.removeEffect(effect);
return;
}
if (duration < 0 || Float.isInfinite(NumericValue.asNumber(list.get(1)).getFloat())){
if (duration < 0){
duration = -1;
}
int amplifier = 0;