"Minor code fixes"

This commit is contained in:
Valentin Anger 2018-01-07 15:05:17 +01:00
parent fd380d743d
commit e9eb6c1ecf
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

View File

@ -54,7 +54,7 @@ local function update_formspec(pos)
energy, minetest.get_item_group(minetest.get_node(pos).name, "sparktech_energy_max")
, 0)
for item=1, 2 do -- Later this should only be done when a player looks into the block
for item=1, 2 do
local cooked
local aftercooked
local progress = meta:get_int("progress_" .. item)
@ -100,7 +100,7 @@ local function mytime(pos, elapsed)
-- minetest.debug(dump(pos) .. " : " .. dump(item))
end
update_formspec(pos)
update_formspec(pos) -- Later this should only be done when a player looks into the block
if counter == 2 then
newcycle = false -- this meens that both finished cooking and the other inventory is full