From a318e2a0c48a8406f13bbc8e900a3c1a1858e239 Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Thu, 15 Jun 2023 12:32:26 -0300 Subject: [PATCH] Fixed compile error --- .../Items/Components/Signal/WifiComponent.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Signal/WifiComponent.cs b/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Signal/WifiComponent.cs index 8a77e86c9..37fb8c056 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Signal/WifiComponent.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/Items/Components/Signal/WifiComponent.cs @@ -1,4 +1,4 @@ -using Barotrauma.Networking; +using Barotrauma.Networking; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -69,21 +69,8 @@ namespace Barotrauma.Items.Components "as chat messages in the chatbox of the player holding the item.", alwaysUseInstanceValues: true)] public bool LinkToChat { -#if SERVER - get - { - if(GameMain.LuaCs.Game.allowWifiChat) return true; - return linkToChat; - } - - set - { - linkToChat = value; - } -#else get; set; -#endif } [Editable, Serialize(1.0f, IsPropertySaveable.Yes, description: "How many seconds have to pass between signals for a message to be displayed in the chatbox. " + @@ -356,4 +343,4 @@ namespace Barotrauma.Items.Components return element; } } -} \ No newline at end of file +}