diff options
author | Mattes D <github@xoft.cz> | 2015-05-12 10:29:55 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-12 10:29:55 +0200 |
commit | 0686b55901891b837ad099afed2047017be1abba (patch) | |
tree | 87f37a195b2bffb3ab62ca214ae4a632dacd07e7 /lib/tolua++ | |
parent | Fixed creative click-outside (diff) | |
parent | CIBuild: Added action labels (diff) | |
download | cuberite-0686b55901891b837ad099afed2047017be1abba.tar cuberite-0686b55901891b837ad099afed2047017be1abba.tar.gz cuberite-0686b55901891b837ad099afed2047017be1abba.tar.bz2 cuberite-0686b55901891b837ad099afed2047017be1abba.tar.lz cuberite-0686b55901891b837ad099afed2047017be1abba.tar.xz cuberite-0686b55901891b837ad099afed2047017be1abba.tar.zst cuberite-0686b55901891b837ad099afed2047017be1abba.zip |
Diffstat (limited to 'lib/tolua++')
-rw-r--r-- | lib/tolua++/src/bin/lua/compat-5.1.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tolua++/src/bin/lua/compat-5.1.lua b/lib/tolua++/src/bin/lua/compat-5.1.lua index c591592a6..c0a3ec388 100644 --- a/lib/tolua++/src/bin/lua/compat-5.1.lua +++ b/lib/tolua++/src/bin/lua/compat-5.1.lua @@ -54,3 +54,11 @@ string.repl = ogsub +-- Lua 5.2+ and LuaJit don't have string.gfind(). Use string.gmatch() instead: +if not(string.gfind) then + string.gfind = string.gmatch +end + + + + |