mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Fix crash when sheep replaces grass
This commit is contained in:
parent
4000af14fa
commit
7061fd63d5
@ -86,6 +86,9 @@ mobs:register_mob("mobs_mc:sheep", {
|
||||
-- Properly regrow wool after eating grass
|
||||
on_replace = function(self, pos, oldnode, newnode)
|
||||
self.gotten = false
|
||||
if not self.color or not colors[self.color] then
|
||||
self.color = "unicolor_white"
|
||||
end
|
||||
self.drops = {
|
||||
{name = mobs_mc.items.mutton_raw,
|
||||
chance = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user