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;