Fix for barrels not exploding properly in tilemaps

This commit is contained in:
MaddoScientisto 2024-08-17 19:11:49 +02:00
commit 0eb6a9140f
5 changed files with 44 additions and 37 deletions

View file

@ -51,7 +51,10 @@ public partial class Barrel : Area2D, IDestructible
private void CreateParticles()
{
if (ExplosionParticles == null) {
GD.PushWarning("Object has no particles associated");
return;
}
var particle = this.CreateChild<GpuParticles2D>(ExplosionParticles);
if (particle == null) return;

File diff suppressed because one or more lines are too long