1
0
Fork 0

Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 into master

objects
Wuzzy 2020-08-22 00:31:18 +02:00
commit 92c01628a9
2 changed files with 7 additions and 4 deletions

View File

@ -183,7 +183,7 @@ local function furnace_get_delta_time(pos)
last_game_time = tonumber(last_game_time)
end
if not last_game_time or last_game_time < 1 then
last_game_time = current_game_time
last_game_time = current_game_time - 0.1
elseif last_game_time == current_game_time then
current_game_time = current_game_time + 1.0
end
@ -210,7 +210,7 @@ local function furnace_node_timer(pos, elapsed)
local srclist, fuellist
local cookable, cooked
local active
local active = true
local fuel
srclist = inv:get_list("src")
@ -321,7 +321,10 @@ local function furnace_node_timer(pos, elapsed)
local result = false
if active then
local fuel_percent = math.floor(fuel_time / fuel_totaltime * 100)
local fuel_percent = 0
if fuel_totaltime > 0 then
fuel_percent = math.floor(fuel_time / fuel_totaltime * 100)
end
formspec = active_formspec(fuel_percent, item_percent)
swap_node(pos, "mcl_furnaces:furnace_active")
-- make sure timer restarts automatically

View File

@ -84,7 +84,7 @@ Harming=урона
-12 HP=-12 HP
Instantly deals damage.=Вызывает мгновенную смерть.
Night Vision=ночного зрения
Increases the perceived brightness of light under a dark sky.=
Increases the perceived brightness of light under a dark sky.=Усиливает восприятие яркости освещени под тёмным небом.
Swiftness=ускорения
Increases walking speed.=Увеличивает скорость ходьбы
Slowness=замедления