diff options
author | est31 <MTest31@outlook.com> | 2015-06-02 00:20:12 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-06-02 00:20:12 +0200 |
commit | e479337c1a69c68e4e9b0e7d0a6cc96550039bb1 (patch) | |
tree | b0c7c983f0cbb6e02f8d63f90f9e5a2b438f3bf5 /builtin/common | |
parent | 6df6b2a0e050da70ac5de9e99d4f440512888955 (diff) | |
download | minetest-e479337c1a69c68e4e9b0e7d0a6cc96550039bb1.tar.gz minetest-e479337c1a69c68e4e9b0e7d0a6cc96550039bb1.tar.bz2 minetest-e479337c1a69c68e4e9b0e7d0a6cc96550039bb1.zip |
Fix wrong replace from previous commit
Diffstat (limited to 'builtin/common')
-rw-r--r-- | builtin/common/misc_helpers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index d8615b6bb..1c9f2a48f 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -3,7 +3,7 @@ -------------------------------------------------------------------------------- -- Localize functions to avoid table lookups (better performance). local table_insert = table.insert -local string_sub, string_sub = string.sub, string.find +local string_sub, string_find = string.sub, string.find -------------------------------------------------------------------------------- function basic_dump(o) @@ -167,7 +167,7 @@ function string.split(str, delim, include_empty, max_splits, sep_is_pattern) local plain = not sep_is_pattern max_splits = max_splits + 1 repeat - local np, npe = string_sub(str, delim, pos, plain) + local np, npe = string_find(str, delim, pos, plain) np, npe = (np or (len+1)), (npe or (len+1)) if (not np) or (max_splits == 1) then np = len + 1 |