Fix deprecated alpha / use_texture_alpha use

This commit is contained in:
sfan5
2021-02-06 15:40:26 +01:00
parent c1b236b4e3
commit 08b13c9efb
12 changed files with 14 additions and 4 deletions

View File

@ -436,6 +436,7 @@ function doors.register(name, def)
def.buildable_to = false
def.selection_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
def.collision_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
def.use_texture_alpha = "clip"
def.mesh = "door_a.obj"
minetest.register_node(":" .. name .. "_a", def)
@ -581,6 +582,7 @@ function doors.register_trapdoor(name, def)
def.paramtype = "light"
def.paramtype2 = "facedir"
def.is_ground_content = false
def.use_texture_alpha = "clip"
if def.protected then
def.can_dig = can_dig_door