summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoblin <github@uukgoblin.net>2014-07-18 17:08:05 +0100
committergoblin <github@uukgoblin.net>2014-07-18 17:08:05 +0100
commit9290e6f00da82392b26b72bac1391b364bf0827a (patch)
tree4771898ff5b5bb5a4a86ccbd7f1045f31f259157
parent69487e530bbc56a1990fe519749b8e44e1dd5092 (diff)
coal alloy furnace to return the buckets
-rw-r--r--technic/machines/LV/coal_alloy_furnace.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/technic/machines/LV/coal_alloy_furnace.lua b/technic/machines/LV/coal_alloy_furnace.lua
index d1b7fae..a149921 100644
--- a/technic/machines/LV/coal_alloy_furnace.lua
+++ b/technic/machines/LV/coal_alloy_furnace.lua
@@ -142,10 +142,11 @@ minetest.register_abm({
-- Next take a hard look at the fuel situation
local fuel = nil
+ local afterfuel
local fuellist = inv:get_list("fuel")
if fuellist then
- fuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
+ fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
end
if fuel.time <= 0 then
@@ -158,9 +159,7 @@ minetest.register_abm({
meta:set_string("fuel_totaltime", fuel.time)
meta:set_string("fuel_time", 0)
- local stack = inv:get_stack("fuel", 1)
- stack:take_item()
- inv:set_stack("fuel", 1, stack)
+ inv:set_stack("fuel", 1, afterfuel.items[1])
end,
})