Skip to content

Commit

Permalink
Only respond to interrogations if in VR
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBigz committed Dec 24, 2024
1 parent 1b1c7ef commit 4631e99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TABGVR/Patches/Networking/NetworkEventPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4631e99

Please sign in to comment.