//sculpt, //sculptlist: fix naming of static brushes; prettify output

This commit is contained in:
Starbeamrainbowlabs 2021-12-31 01:43:53 +00:00
parent 227265db72
commit 9df5ba6fe5
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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..":")