Basic Lua loading prep.

TSHOCKPLUGINS-4
This commit is contained in:
Lucas Nicodemus 2012-01-03 16:54:38 -07:00
parent 7e6aa3d288
commit c45291eb6b
5 changed files with 49 additions and 5 deletions

View file

@ -31,6 +31,7 @@ using MaxMind;
using Mono.Data.Sqlite;
using MySql.Data.MySqlClient;
using Rests;
using TShockAPI.LuaSystem;
using Terraria;
using TShockAPI.DB;
using TShockAPI.Net;
@ -64,6 +65,7 @@ namespace TShockAPI
public static RestManager RestManager;
public static Utils Utils = new Utils();
public static StatTracker StatTracker = new StatTracker();
public static LuaLoader LuaLoader;
/// <summary>
/// Called after TShock is initialized. Useful for plugins that needs hooks before tshock but also depend on tshock being loaded.
@ -418,8 +420,8 @@ namespace TShockAPI
RestApi.Start();
StatTracker.CheckIn();
FixChestStacks();
LuaLoader = new LuaLoader(Path.Combine(".", "lua"));
}
private void FixChestStacks()