made explosion forge compliant

This commit is contained in:
2026-05-05 10:55:12 +02:00
parent a139990390
commit 33f55d04f3
10 changed files with 223 additions and 35 deletions

View File

@@ -2019,7 +2019,7 @@ public partial class PlayerController : CharacterBody3D, IForgeEntity, ICueHandl
explosion.Radius = distanceTraveled;
explosion.RDamage.DamageDealt = distanceTraveled;
GetTree().GetRoot().AddChild(explosion);
GetTree().GetCurrentScene().AddChild(explosion);
explosion.GlobalPosition = GlobalPosition;
}