mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-12-11 17:25:22 +01:00
fix hoe bomb item take (thx Grossam)
This commit is contained in:
16
hoes.lua
16
hoes.lua
@@ -322,15 +322,15 @@ core.register_craftitem("farming:hoe_bomb", {
|
||||
hoe_area(pointed_thing.under, user)
|
||||
else
|
||||
throw_potion(itemstack, user)
|
||||
|
||||
if not farming.is_creative(user:get_player_name()) then
|
||||
|
||||
itemstack:take_item()
|
||||
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
if not farming.is_creative(user:get_player_name()) then
|
||||
|
||||
itemstack:take_item()
|
||||
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
-- helper function
|
||||
|
||||
Reference in New Issue
Block a user