mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
comment tweak
This commit is contained in:
parent
9ee24cf32f
commit
415f36013f
@ -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 New Issue
Block a user