mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Only set placed to true if the raycast actually found something.
This commit is contained in:
parent
d990f2e15e
commit
2a0eaa8610
@ -190,8 +190,8 @@ func _physics_process(delta : float) -> void:
|
|||||||
if not res.empty():
|
if not res.empty():
|
||||||
var pos : Vector3 = res["position"]
|
var pos : Vector3 = res["position"]
|
||||||
transform.origin = pos + Vector3(0, 0.2, 0)
|
transform.origin = pos + Vector3(0, 0.2, 0)
|
||||||
|
|
||||||
placed = true
|
placed = true
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if entity.c_is_controlled:
|
if entity.c_is_controlled:
|
||||||
|
Loading…
Reference in New Issue
Block a user