summaryrefslogtreecommitdiffstats
path: root/source/LuaCommandBinder.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-10 21:25:16 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-10 21:25:16 +0200
commita0384257365f9c8a14254114c4f90da9a100425c (patch)
treeab301c50e5ab089687323ad350833363e90f1ba8 /source/LuaCommandBinder.cpp
parentAll blockticking is now done in cBlockHandlers (diff)
downloadcuberite-a0384257365f9c8a14254114c4f90da9a100425c.tar
cuberite-a0384257365f9c8a14254114c4f90da9a100425c.tar.gz
cuberite-a0384257365f9c8a14254114c4f90da9a100425c.tar.bz2
cuberite-a0384257365f9c8a14254114c4f90da9a100425c.tar.lz
cuberite-a0384257365f9c8a14254114c4f90da9a100425c.tar.xz
cuberite-a0384257365f9c8a14254114c4f90da9a100425c.tar.zst
cuberite-a0384257365f9c8a14254114c4f90da9a100425c.zip
Diffstat (limited to 'source/LuaCommandBinder.cpp')
-rw-r--r--source/LuaCommandBinder.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/LuaCommandBinder.cpp b/source/LuaCommandBinder.cpp
index c25b422a7..a495a2954 100644
--- a/source/LuaCommandBinder.cpp
+++ b/source/LuaCommandBinder.cpp
@@ -88,11 +88,11 @@ bool cLuaCommandBinder::HandleCommand( const std::string & a_Command, cPlayer* a
lua_rawset(func.LuaState, -3);
lua_pop(func.LuaState, 1);
- LOGINFO("1. Stack size: %i", lua_gettop(func.LuaState) );
+ LOGD("1. Stack size: %i", lua_gettop(func.LuaState) );
lua_rawgeti( func.LuaState, LUA_REGISTRYINDEX, func.Reference); // same as lua_getref()
// Push the split
- LOGINFO("2. Stack size: %i", lua_gettop(func.LuaState) );
+ LOGD("2. Stack size: %i", lua_gettop(func.LuaState) );
lua_createtable(func.LuaState, Split.size(), 0);
int newTable = lua_gettop(func.LuaState);
int index = 1;
@@ -103,19 +103,19 @@ bool cLuaCommandBinder::HandleCommand( const std::string & a_Command, cPlayer* a
++iter;
++index;
}
- LOGINFO("3. Stack size: %i", lua_gettop(func.LuaState) );
+ LOGD("3. Stack size: %i", lua_gettop(func.LuaState) );
// Push player
tolua_pushusertype( func.LuaState, a_Player, "cPlayer" );
- LOGINFO("Calling bound function! :D");
+ LOGD("Calling bound function! :D");
int s = lua_pcall(func.LuaState, 2, 1, 0);
if( report_errors( func.LuaState, s ) )
{
- LOGINFO("error. Stack size: %i", lua_gettop(func.LuaState) );
+ LOGERROR("error. Stack size: %i", lua_gettop(func.LuaState) );
return false;
}
bool RetVal = (tolua_toboolean(func.LuaState, -1, 0) > 0);
lua_pop(func.LuaState, 1); // Pop return value
- LOGINFO("ok. Stack size: %i", lua_gettop(func.LuaState) );
+ LOGD("ok. Stack size: %i", lua_gettop(func.LuaState) );
return RetVal;
}
return false;