mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-04 08:43:45 +01:00
Fix condition on node collision for mob projectiles
This commit is contained in:
parent
e6fcb2b72d
commit
0f432e22be
@ -421,7 +421,7 @@ function mcl_mobs.register_arrow(name, def)
|
|||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
on_collide_with_solid = function(self, pos, node, nodedef)
|
on_collide_with_solid = function(self, pos, node, nodedef)
|
||||||
if nodedef or not nodedef.walkable then return end
|
if not nodedef or not nodedef.walkable then return end
|
||||||
|
|
||||||
self.hit_node(self, pos, node)
|
self.hit_node(self, pos, node)
|
||||||
if self.drop == true then
|
if self.drop == true then
|
||||||
|
Loading…
Reference in New Issue
Block a user