1
0
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:
sfence 2021-06-06 19:24:10 +02:00 committed by GitHub
parent ddebdeccb1
commit 70500943f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,16 +448,16 @@ function doors.register(name, def)
def.use_texture_alpha = "clip"
def.mesh = "door_a.obj"
minetest.register_node(":" .. name .. "_a", def)
minetest.register_node(":" .. name .. "_a", table.copy(def))
def.mesh = "door_b.obj"
minetest.register_node(":" .. name .. "_b", def)
minetest.register_node(":" .. name .. "_b", table.copy(def))
def.mesh = "door_a2.obj"
minetest.register_node(":" .. name .. "_c", def)
minetest.register_node(":" .. name .. "_c", table.copy(def))
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 .. "_b"] = true