1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-15 06:45:22 +01:00

remove spears, improve and fix bug in throwing mod

This commit is contained in:
2015-10-12 21:55:06 +02:00
parent 95afbebdd9
commit f198c25db2
18 changed files with 103 additions and 201 deletions

View File

@@ -90,7 +90,11 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
end
end
if node.name ~= "air" 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 ~= "air"
and not (string.find(node.name, 'grass') and not string.find(node.name, 'dirt'))
and not (string.find(node.name, 'farming:') and not string.find(node.name, 'soil'))
and not string.find(node.name, 'flowers:')
and not string.find(node.name, 'fire:') then
boom(self.lastpos)
self.object:remove()
return