Make outposts actually end after they expire
This commit is contained in:
parent
cce871b0e2
commit
73cb42c7ab
@ -460,6 +460,14 @@ public class Outpost implements Listener
|
||||
|
||||
UtilParticle.PlayParticleToAll(ParticleType.MOB_SPELL, _core.clone().add(circleX + .5, 1.1d, circleZ + .5), new Vector(color.getRed(), color.getGreen(), color.getBlue()), 1.f, 0, ViewDist.NORMAL);
|
||||
}
|
||||
|
||||
if (_state == OutpostState.LIVE)
|
||||
{
|
||||
if (UtilTime.elapsed(_timeSpawned, MAX_LIFETIME))
|
||||
{
|
||||
kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user