This commit is contained in:
2025-01-15 12:44:37 +09:00
parent 7784dbf3ad
commit 736df61152
3 changed files with 2 additions and 6 deletions

View File

@@ -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 and armor[1] then
if armor and armor[1] and armor[1].valid_for_read then
local armor_grid = armor[1].grid
if armor_grid then