1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-09-27 07:00:17 +02:00

doc fix, coding style fix

This commit is contained in:
Imre Péntek 2024-04-16 00:41:57 +02:00
parent ea05043273
commit 8a3f46153c

View File

@ -6,7 +6,7 @@
-- * name (the name of the player issuing the //lua command)
-- * player (the player object of the above player if applicable)
-- * pos (the position of the aforementioned player (if applicable) rounded to integers
-- @return tuple of success, return of code as string (error message in case of failure)
-- @return string in case of error, tuple of nil, return of code as string in case of success
function worldedit.lua(code, name)
if string.sub(code, 1, 1) == "=" then
code = "return " .. string.sub(code, 2)