forked from mtcontrib/farming
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)
|
hoe_area(pointed_thing.under, user)
|
||||||
else
|
else
|
||||||
throw_potion(itemstack, user)
|
throw_potion(itemstack, user)
|
||||||
|
|
||||||
if not farming.is_creative(user:get_player_name()) then
|
|
||||||
|
|
||||||
itemstack:take_item()
|
|
||||||
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end,
|
|
||||||
|
if not farming.is_creative(user:get_player_name()) then
|
||||||
|
|
||||||
|
itemstack:take_item()
|
||||||
|
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- helper function
|
-- helper function
|
||||||
|
|||||||
Reference in New Issue
Block a user