From 89cb0389d1792412f20a02636980c4081dfa8af9 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Tue, 28 Dec 2021 12:38:52 -0300 Subject: [PATCH] wrong hook name --- .../Networking/Primitives/Peers/Server/LidgrenServerPeer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/Networking/Primitives/Peers/Server/LidgrenServerPeer.cs b/Barotrauma/BarotraumaServer/ServerSource/Networking/Primitives/Peers/Server/LidgrenServerPeer.cs index 5f25a11b5..e19b1fd96 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/Networking/Primitives/Peers/Server/LidgrenServerPeer.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/Networking/Primitives/Peers/Server/LidgrenServerPeer.cs @@ -182,7 +182,7 @@ namespace Barotrauma.Networking { if (netServer == null) { return; } - var result = new LuaResult(GameMain.Lua.hook.Call("LidgrenHandleConnection", inc)); + var result = new LuaResult(GameMain.Lua.hook.Call("lidgren.handleConnection", inc)); if (!result.IsNull()) if (result.Bool()) goto ignore;