forked from unfa/liblast
Fixed player spawning blood effect parented to himself.
This commit is contained in:
parent
e9424e2160
commit
1456dacc30
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ master func on_hit(damage, location):
|
|||
|
||||
remote func blood_splatter(location):
|
||||
var effect = bodyHitEffect.instance()
|
||||
add_child(effect)
|
||||
get_tree().root.add_child(effect)
|
||||
effect.global_transform.origin = location
|
||||
|
||||
master func kill():
|
||||
|
|
Loading…
Reference in a new issue