Update EntityValue.java
This commit is contained in:
1 parent
f13db30bb4
commit
f7da8c2571
1 file changed
+1
-1
@@ -1483,7 +1483,7 @@ public class EntityValue extends Value
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int duration = (int) NumericValue.asNumber(list.get(1)).getLong();
|
int duration = (int) NumericValue.asNumber(list.get(1)).getLong();
|
||||||
if (duration <= 0)
|
if (duration <= 0 && duration != -1)
|
||||||
{
|
{
|
||||||
le.removeEffect(effect);
|
le.removeEffect(effect);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user