summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-14 14:37:39 +0100
committermadmaxoft <github@xoft.cz>2014-03-14 14:37:39 +0100
commit9b63156447882c57698aba48da37c82cc0f0b428 (patch)
tree26ba915dbf8d458a0a4d1f799050cb266bf3e1c3 /src/Bindings
parentFixed a warning. (diff)
downloadcuberite-9b63156447882c57698aba48da37c82cc0f0b428.tar
cuberite-9b63156447882c57698aba48da37c82cc0f0b428.tar.gz
cuberite-9b63156447882c57698aba48da37c82cc0f0b428.tar.bz2
cuberite-9b63156447882c57698aba48da37c82cc0f0b428.tar.lz
cuberite-9b63156447882c57698aba48da37c82cc0f0b428.tar.xz
cuberite-9b63156447882c57698aba48da37c82cc0f0b428.tar.zst
cuberite-9b63156447882c57698aba48da37c82cc0f0b428.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/ManualBindings.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 462ef3682..20bbc48f2 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -1522,7 +1522,10 @@ static int tolua_cPluginManager_BindConsoleCommand(lua_State * L)
// Read the arguments to this API call:
tolua_Error tolua_err;
int idx = 1;
- if (tolua_isusertype(L, 1, "cPluginManager", 0, &tolua_err))
+ if (
+ tolua_isusertype(L, 1, "cPluginManager", 0, &tolua_err) ||
+ tolua_isusertable(L, 1, "cPluginManager", 0, &tolua_err)
+ )
{
idx++;
}