From e49eac6d85f017022a770b790dc8ff5f6e8d727c Mon Sep 17 00:00:00 2001 From: epCode Date: Sun, 4 Jun 2023 16:24:37 -0700 Subject: [PATCH] Fix sheep not regrowing wool after eating --- mods/ENTITIES/mobs_mc/sheep.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/sheep.lua b/mods/ENTITIES/mobs_mc/sheep.lua index e64bc7c30..bc5026bd2 100644 --- a/mods/ENTITIES/mobs_mc/sheep.lua +++ b/mods/ENTITIES/mobs_mc/sheep.lua @@ -126,7 +126,7 @@ mcl_mobs.register_mob("mobs_mc:sheep", { self:set_velocity(0) minetest.after(self.replace_delay, function() self.object:set_velocity(vector.zero()) - if self and self.object and not self.object:get_velocity() and self.health > 0 then + if self and self.object and self.object:get_velocity() and self.health > 0 then if not self.color or not colors[self.color] then self.color = "unicolor_white" end