mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Fix crash when sheep replaces grass
This commit is contained in:
parent
4000af14fa
commit
7061fd63d5
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue