From 443143663a330dd6b372a2b612858f60c5adf549 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Thu, 18 Jan 2024 11:54:17 +0100 Subject: [PATCH] Fix wrong assertion argument order --- .../data-final-fixes.lua | 2 +- .../se-construction-pylon-show-orange-n-green-in-hand/info.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/se-construction-pylon-show-orange-n-green-in-hand/data-final-fixes.lua b/mods/se-construction-pylon-show-orange-n-green-in-hand/data-final-fixes.lua index af981ff4..fe2166d6 100644 --- a/mods/se-construction-pylon-show-orange-n-green-in-hand/data-final-fixes.lua +++ b/mods/se-construction-pylon-show-orange-n-green-in-hand/data-final-fixes.lua @@ -22,7 +22,7 @@ local function handle(name) end if port.logistics_radius then - assert(port.logistics_radius >= pole.supply_area_distance) -- hardcoded assumption that the logistic area is smaller than the power coverage + assert(pole.supply_area_distance >= port.logistics_radius) -- hardcoded assumption that the logistic area is smaller than the power coverage table.insert(layers, { filename = "__core__/graphics/visualization-logistic-radius.png", height = 8, diff --git a/mods/se-construction-pylon-show-orange-n-green-in-hand/info.json b/mods/se-construction-pylon-show-orange-n-green-in-hand/info.json index bb442690..c0632945 100644 --- a/mods/se-construction-pylon-show-orange-n-green-in-hand/info.json +++ b/mods/se-construction-pylon-show-orange-n-green-in-hand/info.json @@ -2,7 +2,7 @@ "name": "se-construction-pylon-show-orange-n-green-in-hand", "title": "Space Exploration - construction pylon show orange and green in hand", "description": "By default it only shows the power coverage, which is not ideal when trying to space them. (pun intended)", - "version": "1.0.0", + "version": "1.0.1", "author": "Quezler", "factorio_version": "1.1", "dependencies": [