1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-05 01:20:34 +02:00

Remove ignore list and fix many warnings

This commit is contained in:
Panquesito7
2020-02-08 01:27:57 -06:00
parent 198cd4b4bc
commit 25aaab20de
10 changed files with 44 additions and 43 deletions

View File

@ -23,7 +23,7 @@ end
--- Determines the volume of the region defined by positions `pos1` and `pos2`.
-- @return The volume.
function worldedit.volume(pos1, pos2)
local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
pos1, pos2 = worldedit.sort_pos(pos1, pos2)
return (pos2.x - pos1.x + 1) *
(pos2.y - pos1.y + 1) *
(pos2.z - pos1.z + 1)