From 73d3180a550f6c477ec99cf231628bdcbaeff420 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Mon, 28 Sep 2015 01:00:27 +0200 Subject: [PATCH] fix my error, commited test code --- mods/throwing/spears.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/throwing/spears.lua b/mods/throwing/spears.lua index 1f1afabc..d2d274ff 100644 --- a/mods/throwing/spears.lua +++ b/mods/throwing/spears.lua @@ -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)