Fixes an issue where entities wouldn't be removed when a build got a
"Failure" score.
This commit is contained in:
Sam 2016-06-01 15:41:02 +01:00
parent 4c4363ffaa
commit b08c2c9467
1 changed files with 5 additions and 1 deletions

View File

@ -429,8 +429,12 @@ public class Build extends SoloGame
}
else if (!hasDecentVote)
{
for(Entity entity : _viewData.Entities)
{
entity.remove();
}
Manager.GetExplosion().BlockExplosion(_viewData.Blocks, _viewData.Spawn, false);
//Effects
_viewData.Spawn.getWorld().playSound(_viewData.Spawn, Sound.EXPLODE, 3f, 1f);
UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, _viewData.Spawn, 4f, 4f, 4f, 0, 10,