fixed insta-expire
This commit is contained in:
parent
5d58c56c27
commit
c463b80fe0
@ -75,7 +75,11 @@ public class ProjectileUser
|
||||
_thrower = thrower;
|
||||
_callback = callback;
|
||||
|
||||
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;
|
||||
|
||||
if (expireTime > 0)
|
||||
_expireTime = System.currentTimeMillis() + expireTime;
|
||||
else
|
||||
_expireTime = -1;
|
||||
|
||||
_hitPlayer = hitPlayer;
|
||||
_hitNonPlayerEntity = hitNonPlayerEntity;
|
||||
_hitBlock = hitBlock;
|
||||
|
Loading…
Reference in New Issue
Block a user