From 921b811c3bd35a36f70bab2c9dfe3155e70c76c0 Mon Sep 17 00:00:00 2001 From: nixnoxus Date: Fri, 8 Mar 2024 19:44:39 +0100 Subject: [PATCH] fix 'WARNING[Server]: Undeclared global variable default_walk_chance accessed' [2] --- mods/ENTITIES/mcl_mobs/breeding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/breeding.lua b/mods/ENTITIES/mcl_mobs/breeding.lua index c6d8f92cd..749621628 100644 --- a/mods/ENTITIES/mcl_mobs/breeding.lua +++ b/mods/ENTITIES/mcl_mobs/breeding.lua @@ -319,7 +319,7 @@ function mob_class:toggle_sit(clicker,p) particle = "mobs_mc_wolf_icon_roam.png" self.order = "roam" self.state = "stand" - self.walk_chance = default_walk_chance + self.walk_chance = 50 self.jump = true self:set_animation("stand") -- TODO: Add sitting model