From 9c8098c2037cb65b1e67f2b8cf6bbba63994052c Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 21 Aug 2020 15:23:15 +0400 Subject: [PATCH 1/5] try to fix https://git.minetest.land/Wuzzy/MineClone2/issues/821 --- mods/ITEMS/mcl_furnaces/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index cd2b6b41ee..97e0e3e8a2 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -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") From 6efed858668c1fd9b91c4d7432835f18a6a0b3cb Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 21 Aug 2020 15:58:17 +0400 Subject: [PATCH 2/5] prevent divizion by zero in mcl_furnaces --- mods/ITEMS/mcl_furnaces/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index 97e0e3e8a2..8f4f34d880 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -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 From a728974d8a82431fa0c037f2de8fd442a37fc0d2 Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 21 Aug 2020 16:07:50 +0400 Subject: [PATCH 3/5] prevent furnaces flashing on fuel load --- mods/ITEMS/mcl_furnaces/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index 8f4f34d880..7a84d10b85 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -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 From e4ca1beacb5938b6473c7b34e5c7b0c44b1f1373 Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 21 Aug 2020 22:19:23 +0400 Subject: [PATCH 4/5] prevent furnaces flashes on fuel load more correctly --- mods/ITEMS/mcl_furnaces/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index 7a84d10b85..07213e40d9 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -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 + 0.1 + 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 From a672d901f825f0ff771fc3222235f04bc1337f9c Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 21 Aug 2020 22:22:55 +0400 Subject: [PATCH 5/5] Translate new line in mcl_potions.ru.tr --- mods/ITEMS/mcl_potions/locale/mcl_potions.ru.tr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/locale/mcl_potions.ru.tr b/mods/ITEMS/mcl_potions/locale/mcl_potions.ru.tr index 9640e07dc4..3d309cbbac 100644 --- a/mods/ITEMS/mcl_potions/locale/mcl_potions.ru.tr +++ b/mods/ITEMS/mcl_potions/locale/mcl_potions.ru.tr @@ -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=замедления