diff options
author | madmaxoft <github@xoft.cz> | 2014-01-31 09:19:46 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-31 16:01:15 +0100 |
commit | 5092ae526629b8eb8e611531a2f312c9177f0673 (patch) | |
tree | e14a45920554a44b8417c31427b12c24ae441ef4 /src | |
parent | Added cChunkDest::UpdateHeightmap() (diff) | |
download | cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.tar cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.tar.gz cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.tar.bz2 cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.tar.lz cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.tar.xz cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.tar.zst cuberite-5092ae526629b8eb8e611531a2f312c9177f0673.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index e7c66c6fb..ddc93b8c7 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -1429,7 +1429,10 @@ static int tolua_cPluginManager_BindCommand(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++; } |