mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 05:24:20 +02:00
//sculpt, //sculptlist: fix naming of static brushes; prettify output
This commit is contained in:
parent
227265db72
commit
9df5ba6fe5
@ -34,7 +34,7 @@ return function(dirpath, overwrite_existing)
|
||||
for i, filename in pairs(files) do
|
||||
if wea.str_ends(filename, ".brush.tsv") then
|
||||
local filepath = dirpath.."/"..filename
|
||||
local name = filepath:gsub(".brush.tsv", "")
|
||||
local name = filename:gsub(".brush.tsv", "")
|
||||
|
||||
local success, msg = import_filepath(filepath, name, overwrite_existing)
|
||||
if not success then
|
||||
|
@ -24,7 +24,7 @@ minetest.register_chatcommand("/sculptlist", {
|
||||
|
||||
local brush_size = "dynamic"
|
||||
if type(brush_def) ~= "function" then
|
||||
brush_size = brush_def.size
|
||||
brush_size = brush_def.size.x.."x"..brush_def.size.y
|
||||
end
|
||||
|
||||
print("//sculptlist: preview for "..brush_name..":")
|
||||
|
Loading…
Reference in New Issue
Block a user