From fb1cea447de4e67e5ba679962d8a1c58b33cf2e5 Mon Sep 17 00:00:00 2001 From: Cherry Date: Thu, 13 Jun 2024 17:17:32 -0400 Subject: [PATCH] fix beaconfade panic caused by room scene commit --- pets-lib/src/world/interaction/zone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pets-lib/src/world/interaction/zone.rs b/pets-lib/src/world/interaction/zone.rs index ced9a058..67253984 100644 --- a/pets-lib/src/world/interaction/zone.rs +++ b/pets-lib/src/world/interaction/zone.rs @@ -85,7 +85,7 @@ impl InteractionZone { } fn tp_player_to_beacon(&self, target: &NodePath) { - let black = self.base().get_node_as::("%BeaconFade"); + let black = current_scene().get_node_as::("%BeaconFade"); fade_black(&black, true, TP_BEACON_BLACK_IN);