1
0

Merge pull request #2108 from mc-server/tgh-boolean

TryGetHeight returns a bool
This commit is contained in:
Alexander Harkness 2015-05-23 10:45:56 +01:00
commit 0daa6a92ea

View File

@ -530,7 +530,7 @@ static int tolua_cWorld_TryGetHeight(lua_State * tolua_S)
// Call the implementation:
int Height = 0;
bool res = self->TryGetHeight(BlockX, BlockZ, Height);
L.Push(res ? 1 : 0);
L.Push(res);
if (res)
{
L.Push(Height);