From 7355c14020d5ae693e81f61bec150bcae1ad67b0 Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Wed, 16 Aug 2023 22:55:07 -0700 Subject: [PATCH] fix interaction trigger flickering and throwing errors --- BoundingBoxes/InteractionRay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoundingBoxes/InteractionRay.cs b/BoundingBoxes/InteractionRay.cs index 830a049..9955c2a 100644 --- a/BoundingBoxes/InteractionRay.cs +++ b/BoundingBoxes/InteractionRay.cs @@ -22,7 +22,7 @@ public partial class InteractionRay : RayCast2D } } - if (_trigger is not null) + if (_trigger is not null && IsInstanceValid(_trigger)) { if (_trigger != value) {