mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-19 21:14:21 +02:00
//sculpt: fix crash when pos2 is not defined
This commit is contained in:
parent
d9204e95b5
commit
6a1fd707d4
@ -61,10 +61,8 @@ worldedit.register_command("sculpt", {
|
||||
end,
|
||||
func = function(name, brush_name, height, brush_size)
|
||||
local start_time = wea.get_ms_time()
|
||||
local pos1, pos2 = wea.Vector3.sort(
|
||||
worldedit.pos1[name],
|
||||
worldedit.pos2[name]
|
||||
)
|
||||
|
||||
local pos1 = wea.Vector3.clone(worldedit.pos1[name])
|
||||
local success, stats = wea.sculpt.apply(
|
||||
pos1,
|
||||
brush_name, height, brush_size
|
||||
|
Loading…
Reference in New Issue
Block a user