Cocoas: remove refill

This commit is contained in:
Wuzzy 2017-02-18 16:14:31 +01:00
parent a821690c66
commit ec93f7bf57
1 changed files with 0 additions and 12 deletions

View File

@ -36,19 +36,7 @@ function mcl_cocoas.place_cocoa(itemstack, placer, pointed_thing, plantname)
minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0}) minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0})
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
itemstack:take_item() itemstack:take_item()
-- check for refill
if itemstack:get_count() == 0 then
minetest.after(0.20,
farming.refill_plant,
placer,
"mcl_dye:brown",
placer:get_wield_index()
)
end
end end
return itemstack return itemstack