From 839d74329cb564be33a8a717412b7a3f7c043389 Mon Sep 17 00:00:00 2001 From: Rootyjr <41842051+Rootyjr@users.noreply.github.com> Date: Wed, 31 Jul 2019 11:14:11 -0500 Subject: [PATCH] Fix #534.3 (Dyeing a sheep did not remove the dye from inventory.) --- mods/ENTITIES/mobs_mc/sheep.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/sheep.lua b/mods/ENTITIES/mobs_mc/sheep.lua index bf321bcc71..2f069f85ba 100644 --- a/mods/ENTITIES/mobs_mc/sheep.lua +++ b/mods/ENTITIES/mobs_mc/sheep.lua @@ -185,6 +185,10 @@ mobs:register_mob("mobs_mc:sheep", { minetest.log("verbose", "[mobs_mc] " ..item:get_name() .. " " .. minetest.get_item_group(item:get_name(), "dye")) for group, colordata in pairs(colors) do if minetest.get_item_group(item:get_name(), group) == 1 then + if not minetest.settings:get_bool("creative_mode") then + item:take_item() + clicker:set_wielded_item(item) + end self.base_texture = sheep_texture(group) self.object:set_properties({ textures = self.base_texture,