diff --git a/fox.lua b/fox.lua index 62e36a4..1d19fef 100644 --- a/fox.lua +++ b/fox.lua @@ -95,7 +95,7 @@ local fox = { if object:is_player() and not object:get_player_control().sneak or not object:is_player() and object:get_luaentity().name == "mobs_mc:wolf" then self.state = "runaway" self.object:set_rotation({x=0,y=(atan(vec.z / vec.x) + 3 * pi / 2) - self.rotate,z=0}) - if self.reach > vector.distance(self.object:get_pos(), object:get_pos()) and self.timer > .9 and minetest.is_creative_enabled() == false then + if self.reach > vector.distance(self.object:get_pos(), object:get_pos()) and self.timer > .9 then self.timer = 0 object:punch(self.object, 1.0, { full_punch_interval = 1.0,