From 4c8931c9cddf109d9a3ba5985d68a9092dbf0356 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 10 Jan 2016 19:34:11 +0000 Subject: Tiny tweaks --- pumpkin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pumpkin.lua') diff --git a/pumpkin.lua b/pumpkin.lua index 60f0175..708d7ea 100644 --- a/pumpkin.lua +++ b/pumpkin.lua @@ -61,7 +61,7 @@ minetest.register_node("farming:jackolantern", { sounds = default.node_sound_wood_defaults(), on_punch = function(pos, node, puncher) node.name = "farming:jackolantern_on" - minetest.set_node(pos, node) + minetest.swap_node(pos, node) end, }) @@ -82,7 +82,7 @@ minetest.register_node("farming:jackolantern_on", { drop = "farming:jackolantern", on_punch = function(pos, node, puncher) node.name = "farming:jackolantern" - minetest.set_node(pos, node) + minetest.swap_node(pos, node) end, }) -- cgit v1.2.3