1
0
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:
tenplus1
2025-12-09 16:50:54 +00:00
parent 088143a361
commit b6fa5d9447

View File

@@ -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