From 4631e997e890a90ca1a379ab6d8b430cc316842d Mon Sep 17 00:00:00 2001 From: RedBigz Date: Tue, 24 Dec 2024 14:51:45 +1000 Subject: [PATCH] Only respond to interrogations if in VR --- TABGVR/Patches/Networking/NetworkEventPatch.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TABGVR/Patches/Networking/NetworkEventPatch.cs b/TABGVR/Patches/Networking/NetworkEventPatch.cs index d1fb47d..272710d 100644 --- a/TABGVR/Patches/Networking/NetworkEventPatch.cs +++ b/TABGVR/Patches/Networking/NetworkEventPatch.cs @@ -25,6 +25,7 @@ public static bool Prefix(ClientPackage clientPackage) switch (clientPackage.Code) { case (EventCode)PacketCodes.Interrogate: // Interrogate + if (!Plugin.VREnabled.Value) return false; // flatscreen players aren't allowed to respond to interrogations ServerConnector.m_ServerHandler.SendMessageToServer((EventCode)PacketCodes.Interrogate, [], true); Interrogated = true; return false;