mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 15:00:18 +01:00
Fix problem with sharing table in door nodes Lua definitions
closes #2882
This commit is contained in:
parent
ddebdeccb1
commit
70500943f3
@ -448,16 +448,16 @@ function doors.register(name, def)
|
|||||||
def.use_texture_alpha = "clip"
|
def.use_texture_alpha = "clip"
|
||||||
|
|
||||||
def.mesh = "door_a.obj"
|
def.mesh = "door_a.obj"
|
||||||
minetest.register_node(":" .. name .. "_a", def)
|
minetest.register_node(":" .. name .. "_a", table.copy(def))
|
||||||
|
|
||||||
def.mesh = "door_b.obj"
|
def.mesh = "door_b.obj"
|
||||||
minetest.register_node(":" .. name .. "_b", def)
|
minetest.register_node(":" .. name .. "_b", table.copy(def))
|
||||||
|
|
||||||
def.mesh = "door_a2.obj"
|
def.mesh = "door_a2.obj"
|
||||||
minetest.register_node(":" .. name .. "_c", def)
|
minetest.register_node(":" .. name .. "_c", table.copy(def))
|
||||||
|
|
||||||
def.mesh = "door_b2.obj"
|
def.mesh = "door_b2.obj"
|
||||||
minetest.register_node(":" .. name .. "_d", def)
|
minetest.register_node(":" .. name .. "_d", table.copy(def))
|
||||||
|
|
||||||
doors.registered_doors[name .. "_a"] = true
|
doors.registered_doors[name .. "_a"] = true
|
||||||
doors.registered_doors[name .. "_b"] = true
|
doors.registered_doors[name .. "_b"] = true
|
||||||
|
Loading…
Reference in New Issue
Block a user