diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-01-10 19:20:26 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-01-10 19:20:26 +0000 |
commit | 2032a35798e2d0d8a0a001c2b43dd2bb24bbcdda (patch) | |
tree | 3ed35ede1f60774926f85144ad7cf733621fab82 | |
parent | 82344b7a0d3908036497577e82cc36e066d3d52d (diff) |
Tiny tweak
-rw-r--r-- | doors_chest.lua | 4 |
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 +}) |