forked from MineClone5/MineClone5
Don't use up bone meal in creative mode
This commit is contained in:
parent
a2a9405570
commit
dd26dcd6a9
|
@ -216,7 +216,7 @@ minetest.register_craftitem("mcl_dye:white", {
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {dye=1, craftitem=1, basecolor_white=1, excolor_white=1, unicolor_white=1},
|
groups = {dye=1, craftitem=1, basecolor_white=1, excolor_white=1, unicolor_white=1},
|
||||||
on_place = function(itemstack, user, pointed_thing)
|
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()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
|
|
Loading…
Reference in New Issue