mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
fix my error, commited test code
This commit is contained in:
parent
b01fa5276f
commit
73d3180a55
@ -81,7 +81,7 @@ function throwing_register_spear_standard (kind, desc, eq, toughness, craft)
|
||||
end
|
||||
end
|
||||
end
|
||||
if node.name ~= "air" and not string.find(node.name, 'flowers:') and not string.find(node.name, 'fire:') and (node.drawtype and not string.find(node.drawtype, 'plantlike')) then
|
||||
if node.name ~= "air" and not string.find(node.name, 'water_') and not string.find(node.name, 'grass') and not string.find(node.name, 'flowers:') and not string.find(node.name, 'farming:') and not string.find(node.name, 'fire:') then
|
||||
minetest.add_item(self.lastpos, {name='throwing:spear_' .. kind, count=1, wear=self.wear+65535/toughness, metadata=""})
|
||||
--if math.random() < toughness then
|
||||
--minetest.add_item(self.lastpos, 'throwing:spear_' .. kind)
|
||||
|
Loading…
Reference in New Issue
Block a user