Compare commits

...

3 Commits

Author SHA1 Message Date
epCode df8592df41 Revert add punch node 2023-06-04 21:53:39 -07:00
epCode 5e4fa30aae Punch node after change 2023-06-04 20:19:18 -07:00
epCode e49eac6d85 Fix sheep not regrowing wool after eating 2023-06-04 16:24:37 -07:00
2 changed files with 1 additions and 2 deletions

View File

@ -528,7 +528,6 @@ function mob_class:replace_node(pos)
end
end)
end
end
end
end

View File

@ -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