forked from mtcontrib/throwing
remove spears
This commit is contained in:
@ -57,11 +57,11 @@ function throwing_register_arrow_standard (kind, desc, eq, toughness, craft)
|
||||
damage_groups={fleshy=damage},
|
||||
}, nil)
|
||||
self.object:remove()
|
||||
if math.random() < toughness then
|
||||
minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind)
|
||||
else
|
||||
minetest.add_item(self.lastpos, 'default:stick')
|
||||
end
|
||||
--if math.random() < toughness then
|
||||
--minetest.add_item(self.lastpos, 'throwing:arrow_' .. kind)
|
||||
--else
|
||||
--minetest.add_item(self.lastpos, 'default:stick')
|
||||
--end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user