Don't give item after punching saddled horse

This commit is contained in:
Wuzzy 2017-02-21 00:31:12 +01:00
parent f023a1962f
commit f8685e6941

View file

@ -78,7 +78,6 @@ local horse = {
on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, direction) on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, direction)
if puncher and puncher:is_player() then if puncher and puncher:is_player() then
puncher:get_inventory():add_item("main", self.name)
self.object:remove() self.object:remove()
end end
end, end,