diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-05-22 21:20:46 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-05-22 21:20:46 -0400 |
commit | ea9e0c62c9b3c02a3cf31696c567abc879012798 (patch) | |
tree | 309a43f3331ce3ee52fa6a6865791b947f79fff7 /farming/crops | |
parent | 14117cdce080e1eea630363705c6962f716049fe (diff) | |
download | dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar.gz dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar.bz2 dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.tar.xz dreambuilder_modpack-ea9e0c62c9b3c02a3cf31696c567abc879012798.zip |
update biome_lib, coloredwood, extra_stairsplus, farming redo,
moreblocks, moretrees, plantlife, and ropes
Diffstat (limited to 'farming/crops')
-rw-r--r-- | farming/crops/pumpkin.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/farming/crops/pumpkin.lua b/farming/crops/pumpkin.lua index c362449..3960a26 100644 --- a/farming/crops/pumpkin.lua +++ b/farming/crops/pumpkin.lua @@ -46,6 +46,8 @@ minetest.register_node("farming:jackolantern", { groups = {choppy = 1, oddly_breakable_by_hand = 1, flammable = 2}, sounds = default.node_sound_wood_defaults(), on_punch = function(pos, node, puncher) + local name = puncher:get_player_name() or "" + if minetest.is_protected(pos, name) then return end node.name = "farming:jackolantern_on" minetest.swap_node(pos, node) end, @@ -69,6 +71,8 @@ minetest.register_node("farming:jackolantern_on", { sounds = default.node_sound_wood_defaults(), drop = "farming:jackolantern", on_punch = function(pos, node, puncher) + local name = puncher:get_player_name() or "" + if minetest.is_protected(pos, name) then return end node.name = "farming:jackolantern" minetest.swap_node(pos, node) end, |