diff options
author | madmaxoft <github@xoft.cz> | 2014-02-11 15:04:35 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-11 15:04:35 +0100 |
commit | a1e01ff725c5f9261043df34564c770adb7cc937 (patch) | |
tree | 8dd6120f5adf3a17e31976b23748cffb4061b11e /src | |
parent | Added cLuaState::CheckParamFunctionOrNil(). (diff) | |
download | cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.tar cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.tar.gz cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.tar.bz2 cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.tar.lz cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.tar.xz cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.tar.zst cuberite-a1e01ff725c5f9261043df34564c770adb7cc937.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index f0bad92e8..2a7631120 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -1648,9 +1648,9 @@ static int tolua_cWorld_ChunkStay(lua_State * tolua_S) cLuaState L(tolua_S); if ( - !L.CheckParamUserType(1, "cWorld") || - !L.CheckParamTable (2) || - !L.CheckParamFunction(3, 4) + !L.CheckParamUserType (1, "cWorld") || + !L.CheckParamTable (2) || + !L.CheckParamFunctionOrNil(3, 4) ) { return 0; @@ -1671,12 +1671,10 @@ static int tolua_cWorld_ChunkStay(lua_State * tolua_S) L.LogStackTrace(); return 0; } - L.LogStack("Before AddChunks()"); if (!ChunkStay->AddChunks(2)) { return 0; } - L.LogStack("After params read"); ChunkStay->Enable(*World->GetChunkMap(), 3, 4); return 0; |