summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-14 14:46:20 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-14 14:46:20 +0100
commit8b83c1a653fa43ef05c6150126149f4820084097 (patch)
tree4688783dbca9b7a6f0ef662926d07e4c5edc25d6 /src/Bindings
parentFixed xofts issues (diff)
parentcPlugin:BindConsoleCommand can be called statically. (diff)
downloadcuberite-8b83c1a653fa43ef05c6150126149f4820084097.tar
cuberite-8b83c1a653fa43ef05c6150126149f4820084097.tar.gz
cuberite-8b83c1a653fa43ef05c6150126149f4820084097.tar.bz2
cuberite-8b83c1a653fa43ef05c6150126149f4820084097.tar.lz
cuberite-8b83c1a653fa43ef05c6150126149f4820084097.tar.xz
cuberite-8b83c1a653fa43ef05c6150126149f4820084097.tar.zst
cuberite-8b83c1a653fa43ef05c6150126149f4820084097.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++;
}