From b65b84539c426acd6a1f8ce037de9f4f97f11d3e Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Sun, 26 Sep 2021 15:03:29 -0300 Subject: [PATCH] fix voice --- .../BarotraumaServer/ServerSource/Networking/Voip/VoipServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/Networking/Voip/VoipServer.cs b/Barotrauma/BarotraumaServer/ServerSource/Networking/Voip/VoipServer.cs index db3ad09b8..c2f3aec6d 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/Networking/Voip/VoipServer.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/Networking/Voip/VoipServer.cs @@ -96,7 +96,7 @@ namespace Barotrauma.Networking { var should = new LuaResult(GameMain.Lua.hook.Call("canUseVoiceRadio", new object[] { sender, recipient })); - if (!should.IsNull() && should.Bool()) + if (!should.IsNull()) return should.Bool(); if (recipientRadio.CanReceive(senderRadio)) { return true; }