mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-06-30 23:20:44 +02:00
Fix use_texture_alpha warnings since 5.4.0-dev
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user