cWorld:ChunkStay() accepts nils as callbacks.
Also removed leftover debug logging.
This commit is contained in:
parent
33c84aaa4d
commit
a1e01ff725
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user