mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Fix crash with non-punch attack mobs in collision
This commit is contained in:
parent
6bd279255c
commit
74094938bb
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ mobs.collision = function(self)
|
|||
|
||||
local check_for_attack = false
|
||||
|
||||
if self.hostile and self.attacking then
|
||||
if self.attack_type == "punch" and self.hostile and self.attacking then
|
||||
check_for_attack = true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue