fixed insta-expire

This commit is contained in:
Cheese 2015-10-31 19:00:28 +11:00
parent 5d58c56c27
commit c463b80fe0

View File

@ -75,7 +75,11 @@ public class ProjectileUser
_thrower = thrower; _thrower = thrower;
_callback = callback; _callback = callback;
_expireTime = System.currentTimeMillis() + expireTime; if (expireTime > 0)
_expireTime = System.currentTimeMillis() + expireTime;
else
_expireTime = -1;
_hitPlayer = hitPlayer; _hitPlayer = hitPlayer;
_hitNonPlayerEntity = hitNonPlayerEntity; _hitNonPlayerEntity = hitNonPlayerEntity;
_hitBlock = hitBlock; _hitBlock = hitBlock;
@ -112,7 +116,11 @@ public class ProjectileUser
_thrower = thrower; _thrower = thrower;
_callback = callback; _callback = callback;
_expireTime = System.currentTimeMillis() + expireTime; if (expireTime > 0)
_expireTime = System.currentTimeMillis() + expireTime;
else
_expireTime = -1;
_hitPlayer = hitPlayer; _hitPlayer = hitPlayer;
_hitNonPlayerEntity = hitNonPlayerEntity; _hitNonPlayerEntity = hitNonPlayerEntity;
_hitBlock = hitBlock; _hitBlock = hitBlock;