1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-12 12:50:27 +02:00

Corrected volume formula

This commit is contained in:
Davide Saccon
2021-10-25 12:00:19 +08:00
parent df4f55bdcd
commit 07335d0817
2 changed files with 8 additions and 3 deletions

View File

@ -52,7 +52,7 @@ end
-- @param node_name Name of node to make torus of.
-- @param hollow Whether the torus should be hollow.
-- @return The number of nodes added.
function worldedit.torus(pos, radius, tr, node_name, hollow)
function worldedit.torus(pos, radius, tr, node_name)
local radius_out=radius+tr
local radius_in=radius-tr
local manip, area = mh.init_radius(pos, radius_out)