PC-149
Fixes an issue where entities wouldn't be removed when a build got a "Failure" score.
This commit is contained in:
parent
4c4363ffaa
commit
b08c2c9467
@ -429,8 +429,12 @@ public class Build extends SoloGame
|
|||||||
}
|
}
|
||||||
else if (!hasDecentVote)
|
else if (!hasDecentVote)
|
||||||
{
|
{
|
||||||
|
for(Entity entity : _viewData.Entities)
|
||||||
|
{
|
||||||
|
entity.remove();
|
||||||
|
}
|
||||||
Manager.GetExplosion().BlockExplosion(_viewData.Blocks, _viewData.Spawn, false);
|
Manager.GetExplosion().BlockExplosion(_viewData.Blocks, _viewData.Spawn, false);
|
||||||
|
|
||||||
//Effects
|
//Effects
|
||||||
_viewData.Spawn.getWorld().playSound(_viewData.Spawn, Sound.EXPLODE, 3f, 1f);
|
_viewData.Spawn.getWorld().playSound(_viewData.Spawn, Sound.EXPLODE, 3f, 1f);
|
||||||
UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, _viewData.Spawn, 4f, 4f, 4f, 0, 10,
|
UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, _viewData.Spawn, 4f, 4f, 4f, 0, 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user