diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-07 21:28:32 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-07 21:28:32 +0200 |
commit | 499962029a94074ecd007a1be5f760337ff9ffbb (patch) | |
tree | c084157866783cc18ef8c9844e0ee09edf38a7b7 /source/Plugin_NewLua.cpp | |
parent | Fixed bug in entities movement: Corrected proper flooring of double values for the relative move packet, and teleport packet. Also, made the velocity packet to be sent first than the positions packets. (diff) | |
download | cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.tar cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.tar.gz cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.tar.bz2 cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.tar.lz cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.tar.xz cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.tar.zst cuberite-499962029a94074ecd007a1be5f760337ff9ffbb.zip |
Diffstat (limited to 'source/Plugin_NewLua.cpp')
-rw-r--r-- | source/Plugin_NewLua.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/Plugin_NewLua.cpp b/source/Plugin_NewLua.cpp index 6b5e233f6..dc3f62c6b 100644 --- a/source/Plugin_NewLua.cpp +++ b/source/Plugin_NewLua.cpp @@ -18,6 +18,16 @@ extern "C" +// fwd: SQLite/lsqlite3.c +extern "C" +{ + LUALIB_API int luaopen_lsqlite3(lua_State * L); +} + + + + + bool report_errors(lua_State * lua, int status) { if (status == 0) @@ -73,6 +83,7 @@ bool cPlugin_NewLua::Initialize(void) luaL_openlibs(m_LuaState); tolua_AllToLua_open(m_LuaState); ManualBindings::Bind(m_LuaState); + luaopen_lsqlite3(m_LuaState); // Inject the identification global variables into the state: lua_pushlightuserdata(m_LuaState, this); |