Allow to set use_texture_alpha when registering a door

Co-Authored-By: Gregor Parzefall <gregor.parzefall@posteo.de>
This commit is contained in:
Emojigit 2021-05-10 07:22:05 +08:00 committed by GitHub
parent 642fde44f1
commit a06dd4d932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +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.use_texture_alpha = def.use_texture_alpha or "clip"
def.mesh = "door_a.obj"
minetest.register_node(":" .. name .. "_a", def)