mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-28 04:40:22 +02:00
Allow to set use_texture_alpha when registering a door
Co-Authored-By: Gregor Parzefall <gregor.parzefall@posteo.de>
This commit is contained in:
@ -446,7 +446,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.use_texture_alpha = def.use_texture_alpha or "clip"
|
||||
|
||||
def.mesh = "door_a.b3d"
|
||||
minetest.register_node(":" .. name .. "_a", table.copy(def))
|
||||
@ -600,7 +600,7 @@ function doors.register_trapdoor(name, def)
|
||||
def.paramtype = "light"
|
||||
def.paramtype2 = "facedir"
|
||||
def.is_ground_content = false
|
||||
def.use_texture_alpha = "clip"
|
||||
def.use_texture_alpha = def.use_texture_alpha or "clip"
|
||||
|
||||
if def.protected then
|
||||
def.can_dig = can_dig_door
|
||||
|
Reference in New Issue
Block a user