From c463b80fe0abaed2efe165571c0b525d85e81d24 Mon Sep 17 00:00:00 2001 From: Cheese Date: Sat, 31 Oct 2015 19:00:28 +1100 Subject: [PATCH] fixed insta-expire --- .../src/mineplex/core/projectile/ProjectileUser.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java b/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java index 99f006a5d..566aa10cd 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/projectile/ProjectileUser.java @@ -75,7 +75,11 @@ public class ProjectileUser _thrower = thrower; _callback = callback; - _expireTime = System.currentTimeMillis() + expireTime; + if (expireTime > 0) + _expireTime = System.currentTimeMillis() + expireTime; + else + _expireTime = -1; + _hitPlayer = hitPlayer; _hitNonPlayerEntity = hitNonPlayerEntity; _hitBlock = hitBlock; @@ -112,7 +116,11 @@ public class ProjectileUser _thrower = thrower; _callback = callback; - _expireTime = System.currentTimeMillis() + expireTime; + if (expireTime > 0) + _expireTime = System.currentTimeMillis() + expireTime; + else + _expireTime = -1; + _hitPlayer = hitPlayer; _hitNonPlayerEntity = hitNonPlayerEntity; _hitBlock = hitBlock;