Fixes unpowered vr pods trapping occupant

Lack of avatar here meant a runtime that would block the pod from ever reaching the part where the occupant actually gets released.
This commit is contained in:
Verkister
2022-01-08 16:18:35 +02:00
committed by GitHub
parent ae7f147ea5
commit 17fb8e7957
@@ -185,7 +185,8 @@
if(!forced && avatar && alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", "Yes", "No") == "No")
return
avatar.exit_vr()
if(avatar)
avatar.exit_vr()
avatar = null
if(occupant.client)