forked from mtcontrib/farming
Tiny tweaks
This commit is contained in:
parent
171a67ebf2
commit
4c8931c9cd
2
init.lua
2
init.lua
@ -481,7 +481,7 @@ function farming.refill_plant(player, plantname, index)
|
|||||||
|
|
||||||
if old_stack:get_name() ~= "" then return end
|
if old_stack:get_name() ~= "" then return end
|
||||||
|
|
||||||
for i, stack in ipairs(inv:get_list("main")) do
|
for i, stack in pairs(inv:get_list("main")) do
|
||||||
|
|
||||||
if stack:get_name() == plantname and i ~= index then
|
if stack:get_name() == plantname and i ~= index then
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ minetest.register_node("farming:jackolantern", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
node.name = "farming:jackolantern_on"
|
node.name = "farming:jackolantern_on"
|
||||||
minetest.set_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ minetest.register_node("farming:jackolantern_on", {
|
|||||||
drop = "farming:jackolantern",
|
drop = "farming:jackolantern",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
node.name = "farming:jackolantern"
|
node.name = "farming:jackolantern"
|
||||||
minetest.set_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user