From 0bc4f0663650d0f50889663d1932f0681d203877 Mon Sep 17 00:00:00 2001 From: RedRafe <93430988+RedRafe@users.noreply.github.com> Date: Sun, 1 Dec 2024 08:06:53 +0100 Subject: [PATCH] Update DO changelog (#1462) --- map_gen/maps/danger_ores/changelog.lua | 4 ++++ map_gen/maps/danger_ores/modules/permanence.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/map_gen/maps/danger_ores/changelog.lua b/map_gen/maps/danger_ores/changelog.lua index 7dc2f1e8..dd42d1fc 100644 --- a/map_gen/maps/danger_ores/changelog.lua +++ b/map_gen/maps/danger_ores/changelog.lua @@ -80,4 +80,8 @@ return [[ 2024-11-27: - [DO] Enabled presets: PyShort, Omnimatter (x2), and Scrap - [DO] Changed default permissions to allow blueprints + + 2024-12-01: + - [DO:XCross] Added X-Cross preset + - [DO:Permanence] Added Permanence preset ]] diff --git a/map_gen/maps/danger_ores/modules/permanence.lua b/map_gen/maps/danger_ores/modules/permanence.lua index abd02897..8783f057 100644 --- a/map_gen/maps/danger_ores/modules/permanence.lua +++ b/map_gen/maps/danger_ores/modules/permanence.lua @@ -74,7 +74,7 @@ return function(config) Event.add(defines.events.on_robot_mined_entity, on_mined) Event.add(defines.events.on_entity_died, function(event) local force = event.entity and event.entity.force - if force.name ~= 'player' then + if not force or force.name ~= 'player' then return end on_mined(event)