mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
comment tweak
This commit is contained in:
parent
9ee24cf32f
commit
415f36013f
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ end
|
||||||
function worldeditadditions.split (str,dlm,plain)
|
function worldeditadditions.split (str,dlm,plain)
|
||||||
local pos, ret = 0, {}
|
local pos, ret = 0, {}
|
||||||
local ins, i = str:find(dlm,pos,plain)
|
local ins, i = str:find(dlm,pos,plain)
|
||||||
-- if plain shaves off some time in the while statement
|
-- "if plain" shaves off some time in the while statement
|
||||||
if plain then
|
if plain then
|
||||||
while ins do
|
while ins do
|
||||||
table.insert(ret,str:sub(pos,ins - 1))
|
table.insert(ret,str:sub(pos,ins - 1))
|
||||||
|
|
Loading…
Reference in a new issue