fix voice

This commit is contained in:
Evil Factory
2021-09-26 15:03:29 -03:00
parent 96747345e9
commit b65b84539c
@@ -96,7 +96,7 @@ namespace Barotrauma.Networking
{ {
var should = new LuaResult(GameMain.Lua.hook.Call("canUseVoiceRadio", new object[] { sender, recipient })); var should = new LuaResult(GameMain.Lua.hook.Call("canUseVoiceRadio", new object[] { sender, recipient }));
if (!should.IsNull() && should.Bool()) if (!should.IsNull())
return should.Bool(); return should.Bool();
if (recipientRadio.CanReceive(senderRadio)) { return true; } if (recipientRadio.CanReceive(senderRadio)) { return true; }