mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
//sculpt: fix crash when pos2 is not defined
This commit is contained in:
parent
d9204e95b5
commit
6a1fd707d4
1 changed files with 2 additions and 4 deletions
|
@ -61,10 +61,8 @@ worldedit.register_command("sculpt", {
|
||||||
end,
|
end,
|
||||||
func = function(name, brush_name, height, brush_size)
|
func = function(name, brush_name, height, brush_size)
|
||||||
local start_time = wea.get_ms_time()
|
local start_time = wea.get_ms_time()
|
||||||
local pos1, pos2 = wea.Vector3.sort(
|
|
||||||
worldedit.pos1[name],
|
local pos1 = wea.Vector3.clone(worldedit.pos1[name])
|
||||||
worldedit.pos2[name]
|
|
||||||
)
|
|
||||||
local success, stats = wea.sculpt.apply(
|
local success, stats = wea.sculpt.apply(
|
||||||
pos1,
|
pos1,
|
||||||
brush_name, height, brush_size
|
brush_name, height, brush_size
|
||||||
|
|
Loading…
Reference in a new issue