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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user