mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-25 21:05:01 +00:00
//sculpt, //sculptlist: fix naming of static brushes; prettify output
This commit is contained in:
parent
227265db72
commit
9df5ba6fe5
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue