diff options
Diffstat (limited to 'beanpole.lua')
-rw-r--r-- | beanpole.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/beanpole.lua b/beanpole.lua index f9ba132..ba61543 100644 --- a/beanpole.lua +++ b/beanpole.lua @@ -17,6 +17,15 @@ minetest.register_craftitem("farming:beans", { end if not minetest.setting_getbool("creative_mode") then itemstack:take_item() + -- check for refill + if itemstack:get_count() == 0 then + minetest.after(0.20, + farming.refill_plant, + placer, + "farming:beans", + placer:get_wield_index() + ) + end -- END refill end return itemstack end |