"Minor code fixes"
This commit is contained in:
parent
fd380d743d
commit
e9eb6c1ecf
BIN
sparkcore/textures/bar_red.png
Normal file
BIN
sparkcore/textures/bar_red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 158 B |
@ -54,7 +54,7 @@ local function update_formspec(pos)
|
|||||||
energy, minetest.get_item_group(minetest.get_node(pos).name, "sparktech_energy_max")
|
energy, minetest.get_item_group(minetest.get_node(pos).name, "sparktech_energy_max")
|
||||||
, 0)
|
, 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 cooked
|
||||||
local aftercooked
|
local aftercooked
|
||||||
local progress = meta:get_int("progress_" .. item)
|
local progress = meta:get_int("progress_" .. item)
|
||||||
@ -100,7 +100,7 @@ local function mytime(pos, elapsed)
|
|||||||
-- minetest.debug(dump(pos) .. " : " .. dump(item))
|
-- minetest.debug(dump(pos) .. " : " .. dump(item))
|
||||||
end
|
end
|
||||||
|
|
||||||
update_formspec(pos)
|
update_formspec(pos) -- Later this should only be done when a player looks into the block
|
||||||
|
|
||||||
if counter == 2 then
|
if counter == 2 then
|
||||||
newcycle = false -- this meens that both finished cooking and the other inventory is full
|
newcycle = false -- this meens that both finished cooking and the other inventory is full
|
||||||
@ -173,4 +173,4 @@ minetest.register_craft({
|
|||||||
recipe = { { 'group:steelplate', 'group:steelplate', 'group:steelplate' },
|
recipe = { { 'group:steelplate', 'group:steelplate', 'group:steelplate' },
|
||||||
{ 'group:steelplate', 'default:copper_ingot', 'group:steelplate' },
|
{ 'group:steelplate', 'default:copper_ingot', 'group:steelplate' },
|
||||||
{ 'group:steelplate', 'group:steelplate', 'group:steelplate' }}
|
{ 'group:steelplate', 'group:steelplate', 'group:steelplate' }}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user