From 56249130b41ebde9764603a0724c229059d170df Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 1 Aug 2021 11:13:55 +0200 Subject: [PATCH] built on 01/08/2021 11:13:55 --- README.md | 2 +- techage/ta2_energy_storage/ta2_winch.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5a0e1c..ae2cc12 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ ta4_jetpack requires the modpack 3d_armor. 3d_armor is itself a modpack and can' #### 2021-08-01 -Added Mods: +Newly added mods (must be activated!): - networks - ta4_addons (Touchscreen) diff --git a/techage/ta2_energy_storage/ta2_winch.lua b/techage/ta2_energy_storage/ta2_winch.lua index d246a4b..c666ccd 100644 --- a/techage/ta2_energy_storage/ta2_winch.lua +++ b/techage/ta2_energy_storage/ta2_winch.lua @@ -56,7 +56,7 @@ end local function add_chest_entity(pos, nvm) local mem = techage.get_mem(pos) - local length = (nvm.length or MAX_ROPE_LEN) * (1 - nvm.load/nvm.capa) + local length = (nvm.length or MAX_ROPE_LEN) * (1 - (nvm.load or 0) / (nvm.capa or 1)) local y = pos.y - length - 1 techage.renew_rope(pos, length, true) if mem.obj then