From 78e78f67c7bda86f8f757dab19f0532088ab2c3e Mon Sep 17 00:00:00 2001 From: Nexela Date: Sun, 16 Jul 2017 22:23:20 -0400 Subject: [PATCH] 0.3.0 Release Former-commit-id: 82d1a9ea4d603640d88ae7a19a109366d47a770c [formerly 437fd5ca2cad1dd0342350f9e61d5e7cac9226b2] Former-commit-id: 82d1a9ea4d603640d88ae7a19a109366d47a770c Former-commit-id: 17ca6be814af778c9235c521a7ccf74bc2e94e04 --- control.lua | 6 ------ data-final-fixes.lua | 6 ++++++ info.json | 2 +- interface.lua | 6 ------ migrations/pYCoalprocessing_0.3.0.lua | 3 +++ 5 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 migrations/pYCoalprocessing_0.3.0.lua diff --git a/control.lua b/control.lua index f2c86d67..1a2a4c26 100644 --- a/control.lua +++ b/control.lua @@ -36,12 +36,6 @@ function MOD.on_configuration_changed(event) local changes = event.data.mod_changes[MOD.name] if changes then -- This Mod has changed MOD.log("Updated from ".. tostring(changes.old_version) .. " to " .. tostring(changes.new_version), 2) - if changes.new_version == "0.2.6" then - MOD.log("Resetting all technologies") - for _, force in pairs(game.forces) do - force.reset_technology_effects() - end - end end end end diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 94ef891d..89b26376 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -4,3 +4,9 @@ local Area = require('stdlib.area.area') for _, storage_tank in pairs(data.raw["storage-tank"]) do storage_tank.fast_replaceable_group = "storage-tank-"..Area.size(Area.round_to_integer(storage_tank.collision_box)) end + +for _, fluid in pairs(data.raw.fluid) do + if fluid.gas_temperature then + log(fluid.name .. fluid.gas_temperature) + end +end diff --git a/info.json b/info.json index 44086e46..b87598d4 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "pycoalprocessing", - "version": "0.2.6", + "version": "0.3.0", "factorio_version": "0.15", "title": "Pyanodons Coal Processing", "author": "Pyanodon, Nexela", diff --git a/interface.lua b/interface.lua index 18b9b635..d0a75f3a 100644 --- a/interface.lua +++ b/interface.lua @@ -11,10 +11,4 @@ end --Require the awesome console for quick script debugging interface.console = require("stdlib.utils.console") ---Register with creative-mode for easy testing ---if remote.interfaces["creative-mode"] and remote.interfaces["creative-mode"]["register_remote_function_to_modding_ui"] then --- remote.call("creative-mode", "register_remote_function_to_modding_ui", "PYC", "write_global") --- remote.call("creative-mode", "register_remote_function_to_modding_ui", "PYC", "console") ---end - return interface diff --git a/migrations/pYCoalprocessing_0.3.0.lua b/migrations/pYCoalprocessing_0.3.0.lua new file mode 100644 index 00000000..484e4b48 --- /dev/null +++ b/migrations/pYCoalprocessing_0.3.0.lua @@ -0,0 +1,3 @@ +for _, force in pairs(game.forces) do + force.reset_technology_effects() +end