summaryrefslogtreecommitdiffstats
path: root/source/ManualBindings.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-08 14:08:21 +0200
committermadmaxoft <github@xoft.cz>2013-08-08 14:08:35 +0200
commit198b221997e6f34131cf7078ad3616e5ff320c8d (patch)
tree9954a08f74e76d2284489e4a82ef2896c2675bca /source/ManualBindings.cpp
parentcPlugin: Removed empty default implementation of virtual calls. (diff)
downloadcuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.tar
cuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.tar.gz
cuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.tar.bz2
cuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.tar.lz
cuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.tar.xz
cuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.tar.zst
cuberite-198b221997e6f34131cf7078ad3616e5ff320c8d.zip
Diffstat (limited to 'source/ManualBindings.cpp')
-rw-r--r--source/ManualBindings.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp
index 4041ccc94..3c52d35f7 100644
--- a/source/ManualBindings.cpp
+++ b/source/ManualBindings.cpp
@@ -85,7 +85,7 @@ static int tolua_StringSplit(lua_State * tolua_S)
std::string delim = (std::string)tolua_tocppstring(LuaState, 2, 0);
AStringVector Split = StringSplit(str, delim);
- LuaState.PushStringVector(Split);
+ LuaState.Push(Split);
return 1;
}
@@ -1504,11 +1504,11 @@ public:
// No such function in the table, skip the callback
return false;
}
- m_LuaState.PushNumber(a_BlockX);
- m_LuaState.PushNumber(a_BlockY);
- m_LuaState.PushNumber(a_BlockZ);
- m_LuaState.PushNumber(a_BlockType);
- m_LuaState.PushNumber(a_BlockMeta);
+ m_LuaState.Push(a_BlockX);
+ m_LuaState.Push(a_BlockY);
+ m_LuaState.Push(a_BlockZ);
+ m_LuaState.Push(a_BlockType);
+ m_LuaState.Push(a_BlockMeta);
if (!m_LuaState.CallFunction(1))
{
return false;
@@ -1529,9 +1529,9 @@ public:
// No such function in the table, skip the callback
return false;
}
- m_LuaState.PushNumber(a_BlockX);
- m_LuaState.PushNumber(a_BlockY);
- m_LuaState.PushNumber(a_BlockZ);
+ m_LuaState.Push(a_BlockX);
+ m_LuaState.Push(a_BlockY);
+ m_LuaState.Push(a_BlockZ);
if (!m_LuaState.CallFunction(1))
{
return false;
@@ -1552,9 +1552,9 @@ public:
// No such function in the table, skip the callback
return false;
}
- m_LuaState.PushNumber(a_BlockX);
- m_LuaState.PushNumber(a_BlockY);
- m_LuaState.PushNumber(a_BlockZ);
+ m_LuaState.Push(a_BlockX);
+ m_LuaState.Push(a_BlockY);
+ m_LuaState.Push(a_BlockZ);
if (!m_LuaState.CallFunction(1))
{
return false;
@@ -1575,9 +1575,9 @@ public:
// No such function in the table, skip the callback
return false;
}
- m_LuaState.PushNumber(a_BlockX);
- m_LuaState.PushNumber(a_BlockY);
- m_LuaState.PushNumber(a_BlockZ);
+ m_LuaState.Push(a_BlockX);
+ m_LuaState.Push(a_BlockY);
+ m_LuaState.Push(a_BlockZ);
if (!m_LuaState.CallFunction(1))
{
return false;