Skip to content

Commit

Permalink
Fixed that caravans had no collision with most entities in the game.
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 9, 2024
1 parent 30450e8 commit e0f826c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Date: ?
- The "transfer all items" and "wait until N" caravan actions now sort and merge both the output and input inventories after delivery. Resolves https://github.com/pyanodon/pybugreports/issues/670
- Deleted duplicate recipe for soil seperation from the pycodex.
- Fixed a bug in the caravan GUI causing the "play" and "pause" buttons to show different information than the actual internal state.
- Fixed that caravans had no collision with most entities in the game.
---------------------------------------------------------------------------------------------------
Version: 3.0.18
Date: 2024-11-7
Expand Down
19 changes: 7 additions & 12 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,6 @@ local walkable_types = {
["inserter"] = true
}

local vessel_placeable_entities = {
["pipe"] = true,
["pipe-to-ground"] = true,
["inserter"] = true
}

for _, prototype in pairs(collision_mask_util.collect_prototypes_with_layer("object")) do
local mask = collision_mask_util.get_mask(prototype)
if mask.layers["water_tile"] then
Expand All @@ -320,6 +314,7 @@ for _, prototype in pairs(collision_mask_util.collect_prototypes_with_layer("obj
end
end
end
prototype.collision_mask = mask
end

for _, tile in pairs(data.raw.tile) do
Expand All @@ -330,11 +325,6 @@ for _, tile in pairs(data.raw.tile) do
end
end

if register_cache_file ~= nil then
register_cache_file({"pycoalprocessing", "pyfusionenergy", "pyindustry", "pyrawores", "pypetroleumhandling", "pyalienlife"}, "__pyalienlife__/cached-configs/pyalienlife+pycoalprocessing+pyfusionenergy+pyindustry+pypetroleumhandling+pyrawores")
register_cache_file({"pycoalprocessing", "pyfusionenergy", "pyindustry", "pyrawores", "pyhightech", "pypetroleumhandling", "pyalienlife"}, "__pyalienlife__/cached-configs/pyalienlife+pycoalprocessing+pyfusionenergy+pyhightech+pyindustry+pypetroleumhandling+pyrawores")
end

-- make players flammable
for _, character in pairs(data.raw.character) do
if character.flags then
Expand All @@ -355,7 +345,7 @@ local dingrido_nonwalkable_prototypes = {
"simple-entity",
"cliff",
"unit",
"turret",
"turret", -- this exists in order to allow killing worms
}
for _, prototype in pairs(dingrido_nonwalkable_prototypes) do
for _, entity in pairs(data.raw[prototype]) do
Expand All @@ -366,3 +356,8 @@ for _, prototype in pairs(dingrido_nonwalkable_prototypes) do
end
end
end

if register_cache_file ~= nil then
register_cache_file({"pycoalprocessing", "pyfusionenergy", "pyindustry", "pyrawores", "pypetroleumhandling", "pyalienlife"}, "__pyalienlife__/cached-configs/pyalienlife+pycoalprocessing+pyfusionenergy+pyindustry+pypetroleumhandling+pyrawores")
register_cache_file({"pycoalprocessing", "pyfusionenergy", "pyindustry", "pyrawores", "pyhightech", "pypetroleumhandling", "pyalienlife"}, "__pyalienlife__/cached-configs/pyalienlife+pycoalprocessing+pyfusionenergy+pyhightech+pyindustry+pypetroleumhandling+pyrawores")
end

0 comments on commit e0f826c

Please sign in to comment.