Skip to content

Commit

Permalink
fix: Fixed missing maraxsis_buildability_rules for sand extractors.
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Jan 15, 2025
1 parent f6ece6f commit 9d4e45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require "compat.whats-a-spoilage"

for extractor in pairs(maraxsis.MARAXSIS_SAND_EXTRACTORS) do
local mask = collision_mask_util.get_mask(data.raw["mining-drill"][extractor])
mask.layers[maraxsis_dome_collision_mask] = true
data.raw["assembling-machine"][extractor .. "-sand-extractor"].collision_mask = mask
end

Expand Down
6 changes: 1 addition & 5 deletions prototypes/entity/sand-extractor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ for extractor in pairs(maraxsis.MARAXSIS_SAND_EXTRACTORS) do
extractor.localised_description = extractor.localised_description or {"?", {"entity-description." .. extractor.name}, ""}
extractor.hidden_in_factoriopedia = false
extractor.fixed_recipe = "maraxsis-sand-extraction"
extractor.maraxsis_buildability_rules = {water = true, dome = false, coral = true, trench = false, trench_entrance = false, trench_lava = false}
extractor.fixed_quality = "normal"
extractor.crafting_speed = extractor.mining_speed
extractor.mining_speed = nil
Expand All @@ -57,11 +58,6 @@ for extractor in pairs(maraxsis.MARAXSIS_SAND_EXTRACTORS) do
extractor.allowed_effects = {"productivity", "consumption", "speed", "pollution", "quality"}
extractor.resource_drain_rate_percent = nil
extractor.name = extractor.name .. "-sand-extractor"
extractor.surface_conditions = {{
property = "pressure",
min = 200000,
max = 200000,
}}
data:extend {extractor}
end

Expand Down

0 comments on commit 9d4e45d

Please sign in to comment.