fix lua added commands breaking after reloadlua

This commit is contained in:
Evil Factory
2021-11-30 15:39:38 -03:00
parent d30fb74d9a
commit e4885bc525
3 changed files with 37 additions and 6 deletions
@@ -311,6 +311,7 @@ namespace Barotrauma
public void Stop()
{
game.Stop();
hook.Call("stop", new object[] { });
hook = new LuaHook(null);