Simplify how None is handled and fixed libs getting loaded too late

This commit is contained in:
EvilFactory
2023-03-17 20:24:54 -03:00
parent cf88aa4c5d
commit 6974c5338a
6 changed files with 16 additions and 20 deletions
@@ -3,6 +3,7 @@ local RegisterBarotrauma = LuaSetup.LuaUserData.RegisterTypeBarotrauma
Register("System.TimeSpan")
Register("System.Exception")
Register("System.Console")
RegisterBarotrauma("Success`2[[Barotrauma.ContentPackage],[System.Exception]]")
RegisterBarotrauma("Failure`2[[Barotrauma.ContentPackage],[System.Exception]]")
@@ -17,7 +18,6 @@ RegisterBarotrauma("LuaInt64")
RegisterBarotrauma("LuaUInt64")
RegisterBarotrauma("LuaSingle")
RegisterBarotrauma("LuaDouble")
RegisterBarotrauma("LuaNone")
RegisterBarotrauma("GameMain")
RegisterBarotrauma("Networking.BanList")