summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings_World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-08-21 11:03:10 +0200
committerGitHub <noreply@github.com>2016-08-21 11:03:10 +0200
commitd4aff474c29d3d9b1a524cfcd5fca925dab79c5b (patch)
tree6fb19fb62a7f268e827e9aef92a5c4e424572ede /src/Bindings/ManualBindings_World.cpp
parentFix minecart destruction crash (#3336) (diff)
downloadcuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.tar
cuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.tar.gz
cuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.tar.bz2
cuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.tar.lz
cuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.tar.xz
cuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.tar.zst
cuberite-d4aff474c29d3d9b1a524cfcd5fca925dab79c5b.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/ManualBindings_World.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp
index 9bb9778dd..f24e5ac34 100644
--- a/src/Bindings/ManualBindings_World.cpp
+++ b/src/Bindings/ManualBindings_World.cpp
@@ -296,10 +296,7 @@ static int tolua_cWorld_GetBlockInfo(lua_State * tolua_S)
L.Push(res);
if (res)
{
- L.Push(BlockType);
- L.Push(BlockMeta);
- L.Push(BlockSkyLight);
- L.Push(BlockBlockLight);
+ L.Push(BlockType, BlockMeta, BlockSkyLight, BlockBlockLight);
return 5;
}
return 1;
@@ -345,8 +342,7 @@ static int tolua_cWorld_GetBlockTypeMeta(lua_State * tolua_S)
L.Push(res);
if (res)
{
- L.Push(BlockType);
- L.Push(BlockMeta);
+ L.Push(BlockType, BlockMeta);
return 3;
}
return 1;
@@ -390,10 +386,7 @@ static int tolua_cWorld_GetSignLines(lua_State * tolua_S)
L.Push(res);
if (res)
{
- L.Push(Line1);
- L.Push(Line2);
- L.Push(Line3);
- L.Push(Line4);
+ L.Push(Line1, Line2, Line3, Line4);
return 5;
}
return 1;