From 2032a35798e2d0d8a0a001c2b43dd2bb24bbcdda Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 10 Jan 2016 19:20:26 +0000 Subject: Tiny tweak --- doors_chest.lua | 4 ++-- 1 file 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 +}) -- cgit v1.2.3