summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-08 13:35:08 +0100
committermadmaxoft <github@xoft.cz>2014-02-08 13:35:08 +0100
commitcfd6875c864570e85a8ac64f3abd8d65f2d47e05 (patch)
treecfb95abb5a15289e7389b8821b21751b8ebd5b85 /src
parentWebAdmin is stopped properly on server shutdown / restart. (diff)
downloadcuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.tar
cuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.tar.gz
cuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.tar.bz2
cuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.tar.lz
cuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.tar.xz
cuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.tar.zst
cuberite-cfd6875c864570e85a8ac64f3abd8d65f2d47e05.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/ManualBindings.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index d476a3156..841ec5cf2 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -906,8 +906,12 @@ static int tolua_cWorld_TryGetHeight(lua_State * tolua_S)
{
int Height = 0;
bool res = self->TryGetHeight(BlockX, BlockZ, Height);
- tolua_pushnumber(tolua_S, Height);
tolua_pushboolean(tolua_S, res ? 1 : 0);
+ if (res)
+ {
+ tolua_pushnumber(tolua_S, Height);
+ return 2;
+ }
}
}
return 1;