Tiny tweak
authorTenPlus1 <kinsellaja@yahoo.com>
Sun, 10 Jan 2016 19:20:26 +0000 (19:20 +0000)
committerTenPlus1 <kinsellaja@yahoo.com>
Sun, 10 Jan 2016 19:20:26 +0000 (19:20 +0000)
doors_chest.lua

index 7b8a464..2bc0b9c 100644 (file)
@@ -378,7 +378,7 @@ function register_trapdoor(name, def)
                if sound then
                        minetest.sound_play(sound, {pos = pos, gain = 0.3, max_hear_distance = 10})
                end
-               minetest.set_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
+               minetest.swap_node(pos, {name = newname, param1 = node.param1, param2 = node.param2})
        end
 
        def.on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple
@@ -448,4 +448,4 @@ minetest.register_craft({
        recipe = {
                {"doors:trapdoor", "default:copper_ingot"}
        }
-})
\ No newline at end of file
+})