//ellipsoidapply: undefined variable fixes

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 20:03:31 +01:00
parent 23e08c5693
commit c14bb40f7e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -45,14 +45,14 @@ worldedit.register_command("ellipsoidapply", {
end, end,
func = function(name, cmd, args_parsed) func = function(name, cmd, args_parsed)
if not minetest.check_player_privs(name, cmd.privs) then if not minetest.check_player_privs(name, cmd.privs) then
return false, "Your privileges are insufficient to execute the command '"..cmd_name.."'." return false, "Your privileges are insufficient to execute the command '"..cmd.."'."
end end
local success, stats_time = worldeditadditions.ellipsoidapply( local success, stats_time = worldeditadditions.ellipsoidapply(
worldedit.pos1[name], worldedit.pos2[name], worldedit.pos1[name], worldedit.pos2[name],
function() function()
cmd.func(name, worldeditadditions.table.unpack(args_parsed)) cmd.func(name, worldeditadditions.table.unpack(args_parsed))
end, args end, args_parsed
) )
local time_overhead = 100 - worldeditadditions.round((stats_time.fn / stats_time.all) * 100, 3) local time_overhead = 100 - worldeditadditions.round((stats_time.fn / stats_time.all) * 100, 3)