mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +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
|
for i, filename in pairs(files) do
|
||||||
if wea.str_ends(filename, ".brush.tsv") then
|
if wea.str_ends(filename, ".brush.tsv") then
|
||||||
local filepath = dirpath.."/"..filename
|
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)
|
local success, msg = import_filepath(filepath, name, overwrite_existing)
|
||||||
if not success then
|
if not success then
|
||||||
|
|
|
@ -24,7 +24,7 @@ minetest.register_chatcommand("/sculptlist", {
|
||||||
|
|
||||||
local brush_size = "dynamic"
|
local brush_size = "dynamic"
|
||||||
if type(brush_def) ~= "function" then
|
if type(brush_def) ~= "function" then
|
||||||
brush_size = brush_def.size
|
brush_size = brush_def.size.x.."x"..brush_def.size.y
|
||||||
end
|
end
|
||||||
|
|
||||||
print("//sculptlist: preview for "..brush_name..":")
|
print("//sculptlist: preview for "..brush_name..":")
|
||||||
|
|
Loading…
Reference in a new issue