1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-20 16:55:19 +01:00

update throwing mod

add spear original + add spear mithril
    improve arrows
This commit is contained in:
2015-09-21 21:41:53 +02:00
parent aa9647ff4e
commit 303a724cda
19 changed files with 204 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
end
end
if node.name ~= "air" 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
if node.name ~= "ignore" and self.inventory and self.stack then
if not minetest.is_protected(self.lastpos, "") and not string.find(node.name, "water_") and not string.find(node.name, "lava") and not string.find(node.name, "torch") and self.stack:get_definition().type == "node" and self.stack:get_name() ~= "default:torch" then
minetest.place_node(self.lastpos, {name=self.stack:get_name()})