mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-18 02:03:47 +00:00
Fix for barrels not exploding properly in tilemaps
This commit is contained in:
parent
f0b93f467c
commit
0eb6a9140f
5 changed files with 44 additions and 37 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue