fix: 2d surface hit graphics no longer appear when hitting an entity

This commit is contained in:
DottsGit
2026-06-06 01:18:51 -04:00
parent e41e64de78
commit 46cee744d1
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ func _shoot_hitscan() -> void:
if result.collider.has_method("take_damage"):
result.collider.take_damage(damage, result.position, player)
else:
elif result.collider is StaticBody3D or result.collider is CSGShape3D:
# Not a target, spawn a bullet hole
ImpactSpawner.spawn(get_tree(), "bullet", result.position, result.normal, 0.1)