summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings_World.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-23 12:31:03 +0200
committertycho <work.tycho@gmail.com>2015-05-23 12:31:03 +0200
commit1577a080ee4e2fb5baaee8c8c98149eb8418b6c6 (patch)
treef8d9453f07a7475562b68ccfbfa92ad817a206be /src/Bindings/ManualBindings_World.cpp
parentFix tests (diff)
parentMerge pull request #2108 from mc-server/tgh-boolean (diff)
downloadcuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.tar
cuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.tar.gz
cuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.tar.bz2
cuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.tar.lz
cuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.tar.xz
cuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.tar.zst
cuberite-1577a080ee4e2fb5baaee8c8c98149eb8418b6c6.zip
Diffstat (limited to 'src/Bindings/ManualBindings_World.cpp')
-rw-r--r--src/Bindings/ManualBindings_World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp
index cda1518d2..8d0288556 100644
--- a/src/Bindings/ManualBindings_World.cpp
+++ b/src/Bindings/ManualBindings_World.cpp
@@ -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);