summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doors_chest.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/doors_chest.lua b/doors_chest.lua
index 7b8a464..2bc0b9c 100644
--- a/doors_chest.lua
+++ b/doors_chest.lua
@@ -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
+})