1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-27 03:50:17 +02:00

added farming refill placed plant

This commit is contained in:
2015-08-26 03:16:22 +02:00
parent fa7aba16e2
commit 8a82fb2bb5
2 changed files with 38 additions and 0 deletions

View File

@ -17,6 +17,9 @@ minetest.register_craftitem("farming:beans", {
end
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
if itemstack:get_count() == 0 then--MFF DEBUT crabman(26/08/2015) refill placed plant
minetest.after(0.20, farming.refill_plant, placer, "farming:beans", placer:get_wield_index())
end --MFF FIN
end
return itemstack
end