Initialize Lua on tutorials and register Exception (for compatibility)
This commit is contained in:
@@ -179,6 +179,8 @@ namespace Barotrauma.Tutorials
|
|||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
|
GameMain.LuaCs.Initialize();
|
||||||
|
|
||||||
GameMain.Instance.ShowLoading(Loading());
|
GameMain.Instance.ShowLoading(Loading());
|
||||||
ObjectiveManager.ResetObjectives();
|
ObjectiveManager.ResetObjectives();
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ local RegisterBarotrauma = LuaSetup.LuaUserData.RegisterTypeBarotrauma
|
|||||||
Register("System.TimeSpan")
|
Register("System.TimeSpan")
|
||||||
Register("System.Exception")
|
Register("System.Exception")
|
||||||
Register("System.Console")
|
Register("System.Console")
|
||||||
|
Register("System.Exception")
|
||||||
|
|
||||||
RegisterBarotrauma("Success`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
RegisterBarotrauma("Success`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
||||||
RegisterBarotrauma("Failure`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
RegisterBarotrauma("Failure`2[[Barotrauma.ContentPackage],[System.Exception]]")
|
||||||
|
|||||||
Reference in New Issue
Block a user