From 8078b528e66b00974fcd725c48406acadcc037de Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Mar 2017 05:27:23 +0100 Subject: [PATCH] Use up dye after using dye on sheep --- mods/ENTITIES/mobs_mc/sheep.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/sheep.lua b/mods/ENTITIES/mobs_mc/sheep.lua index bcbc0dc7cf..effcec7c39 100644 --- a/mods/ENTITIES/mobs_mc/sheep.lua +++ b/mods/ENTITIES/mobs_mc/sheep.lua @@ -168,6 +168,11 @@ print(item:get_name(), minetest.get_item_group(item:get_name(), "dye")) min = 1, max = 1,}, } + + if not minetest.setting_getbool("creative_mode") then + item:take_item() + clicker:get_inventory():set_stack("main", clicker:get_wield_index(), item) + end end end, })