From 7784dbf3ad23734f49a51112f9ac6b1b958a41a3 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 14 Jan 2025 23:38:43 +0900 Subject: [PATCH] . --- exp_legacy/module/modules/gui/bonus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp_legacy/module/modules/gui/bonus.lua b/exp_legacy/module/modules/gui/bonus.lua index 266d811b..c4d63c17 100644 --- a/exp_legacy/module/modules/gui/bonus.lua +++ b/exp_legacy/module/modules/gui/bonus.lua @@ -77,7 +77,7 @@ local function apply_periodic_bonus(player) if vlayer.get_statistics()["energy_sustained"] > 0 then local armor = player.get_inventory(defines.inventory.character_armor) - if armor then + if armor and armor[1] then local armor_grid = armor[1].grid if armor_grid then