This commit is contained in:
2025-01-14 23:38:43 +09:00
parent 29abf08b70
commit 7784dbf3ad

View File

@@ -77,7 +77,7 @@ local function apply_periodic_bonus(player)
if vlayer.get_statistics()["energy_sustained"] > 0 then if vlayer.get_statistics()["energy_sustained"] > 0 then
local armor = player.get_inventory(defines.inventory.character_armor) local armor = player.get_inventory(defines.inventory.character_armor)
if armor then if armor and armor[1] then
local armor_grid = armor[1].grid local armor_grid = armor[1].grid
if armor_grid then if armor_grid then