From dd26dcd6a9f2a0f2aeebc46eddbe0646f00ed7d6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 11 Feb 2017 19:06:21 +0100 Subject: [PATCH] Don't use up bone meal in creative mode --- mods/mcl_dye/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mcl_dye/init.lua b/mods/mcl_dye/init.lua index 3d1a2d7a88..d6b10a44f3 100644 --- a/mods/mcl_dye/init.lua +++ b/mods/mcl_dye/init.lua @@ -216,7 +216,7 @@ minetest.register_craftitem("mcl_dye:white", { stack_max = 64, groups = {dye=1, craftitem=1, basecolor_white=1, excolor_white=1, unicolor_white=1}, on_place = function(itemstack, user, pointed_thing) - if(apply_bone_meal(pointed_thing)) then + if(apply_bone_meal(pointed_thing) and not minetest.setting_getbool("creative_mode")) then itemstack:take_item() end return itemstack