Skip to content

Commit

Permalink
compat: Added compatibility with 5 dim automation. Resolves #211
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Jan 24, 2025
1 parent f5ef86d commit aaace1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions compat/5-dim-automation.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- https://github.com/notnotmelon/maraxsis/issues/211

if not mods["5dim_automation"] then return end

local i = 2
while true do
local chemical_plant = data.raw["assembling-machine"]["5d-chemical-plant-0" .. i]
if not chemical_plant then break end
chemical_plant.maraxsis_buildability_rules = {water = true, dome = true, coral = true, trench = true, trench_entrance = false, trench_lava = false}
i = i + 1
end
1 change: 1 addition & 0 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require "compat.editor-extensions"
require "compat.transport-ring-teleporter"
require "compat.quality-seeds"
require "compat.modules-t4"
require "compat.5-dim-automation"

local function add_fuel_value(fluid, value)
fluid = data.raw.fluid[fluid]
Expand Down

0 comments on commit aaace1c

Please sign in to comment.