]> git.lizzy.rs Git - Crafter.git/commitdiff
fix mobs not getting hurt inside hurt_inside group nodes
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 24 May 2020 05:36:39 +0000 (01:36 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 24 May 2020 05:36:39 +0000 (01:36 -0400)
mods/mob/api/movement.lua

index c85d765d099b28bfe6b45782a3dd0b586ee333e0..f92fb8c467360037f542ba10d3361d47c1e56a54 100644 (file)
@@ -34,6 +34,7 @@ mobs.create_movement_functions = function(def,mob_register)
                                        damage_groups = {damage=hurty},
                                })
                        end
+                       self.hurt_inside_timer = 0.25
                else
                        self.hurt_inside_timer = self.hurt_inside_timer - dtime
                end