From face46e7aa8e12de6fa8ce790a2563d7f5811319 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 2 Mar 2017 22:59:05 +0100 Subject: [PATCH] Allow to place 1 empty bucket into furnace fuel --- mods/ITEMS/mcl_furnaces/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index 91173d705..d2a8224df 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -62,6 +62,15 @@ local function allow_metadata_inventory_put(pos, listname, index, stack, player) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() if listname == "fuel" then + -- Special case: empty bucket (not a fuel, but used for sponge drying) + if stack:get_name() == "bucket:bucket_empty" then + if inv:get_stack(listname, index):get_count() == 0 then + return 1 + else + return 0 + end + end + -- Test stack with size 1 because we burn one fuel at a time local teststack = ItemStack(stack) teststack:set_count(1)