mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-26 18:50:20 +01:00
fix scythe harvest of beanpoles and grapes
This commit is contained in:
parent
58c236532d
commit
99a729e488
@ -191,7 +191,7 @@ local crop_def = {
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 3, not_in_creative_inventory = 1,
|
||||
attached_node = 1, growing = 1
|
||||
attached_node = 1, growing = 1, plant = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ local crop_def = {
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 3, not_in_creative_inventory = 1,
|
||||
attached_node = 1, growing = 1
|
||||
attached_node = 1, growing = 1, plant = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
}
|
||||
|
4
hoes.lua
4
hoes.lua
@ -402,6 +402,9 @@ minetest.register_tool("farming:scythe_mithril", {
|
||||
-- add dropped items
|
||||
for _, dropped_item in pairs(drops) do
|
||||
|
||||
if dropped_item ~= "farming:trellis"
|
||||
and dropped_item ~= "farming:beanpole" then
|
||||
|
||||
local obj = minetest.add_item(pos, dropped_item)
|
||||
|
||||
if obj then
|
||||
@ -413,6 +416,7 @@ minetest.register_tool("farming:scythe_mithril", {
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Run script hook
|
||||
for _, callback in pairs(core.registered_on_dignodes) do
|
||||
|
Loading…
Reference in New Issue
Block a user