Make outposts actually end after they expire

This commit is contained in:
AlexTheCoder 2016-08-07 18:53:23 -04:00
parent cce871b0e2
commit 73cb42c7ab

View File

@ -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