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