From 4f18f77db0533ba458436f53fb31d08b7ebea27c Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 19 Dec 2020 13:02:13 +0100 Subject: [PATCH] Drop xp for empty furnaces too --- mods/ITEMS/mcl_furnaces/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index 32718489..82e82807 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -486,11 +486,15 @@ minetest.register_node("mcl_furnaces:furnace", { -- start timer function, it will sort out whether furnace can burn or not. minetest.get_node_timer(pos):start(1.0) end, - on_metadata_inventory_take = function(pos) + on_metadata_inventory_take = function(pos, listname) -- Reset accumulated game time when player works with furnace: furnace_reset_delta_time(pos) -- start timer function, it will helpful if player clears dst slot minetest.get_node_timer(pos):start(1.0) + + if listname == "dst" then + drop_xp(pos) + end end, allow_metadata_inventory_put = allow_metadata_inventory_put,