1
0
Fork 0

Don't use up bone meal in creative mode

This commit is contained in:
Wuzzy 2017-02-11 19:06:21 +01:00
parent a2a9405570
commit dd26dcd6a9
1 changed files with 1 additions and 1 deletions

View File

@ -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