Skip to content
Permalink
Browse files
Fix problem with sharing table in door nodes Lua definitions
closes #2882
  • Loading branch information
sfence committed Jun 6, 2021
1 parent ddebdec commit 70500943f391383d0794b88c96a3531204fcb721
Showing with 4 additions and 4 deletions.
  1. +4 −4 mods/doors/init.lua
@@ -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

0 comments on commit 7050094

Please sign in to comment.