forked from mtcontrib/farming
fix hoe bomb item take (thx Grossam)
This commit is contained in:
2
hoes.lua
2
hoes.lua
@@ -322,6 +322,7 @@ 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)
|
||||||
|
end
|
||||||
|
|
||||||
if not farming.is_creative(user:get_player_name()) then
|
if not farming.is_creative(user:get_player_name()) then
|
||||||
|
|
||||||
@@ -330,7 +331,6 @@ core.register_craftitem("farming:hoe_bomb", {
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- helper function
|
-- helper function
|
||||||
|
|||||||
Reference in New Issue
Block a user