Fix use_texture_alpha warnings since 5.4.0-dev

This commit is contained in:
SmallJoker
2020-08-16 10:14:18 +02:00
parent c081caf494
commit b67028a417
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,7 @@ local descriptions = {
}
stairsplus.register_single = function(category, alternate, info, modname, subname, recipeitem, fields)
local src_def = minetest.registered_nodes[recipeitem] or {}
local desc_base = descriptions[category]:format(fields.description)
local def = {}
@ -31,6 +32,9 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam
def.drawtype = "nodebox"
def.paramtype = "light"
def.paramtype2 = def.paramtype2 or "facedir"
if def.use_texture_alpha == nil then
def.use_texture_alpha = src_def.use_texture_alpha
end
-- This makes node rotation work on placement
def.place_param2 = nil