SE fish collision fixed


Fish will no longer collide with boats or elevated rails.

12 days ago
2.1
27
Owner:
DonBoobleone
Source:
https://github.com/DonBoobleone/se-fi...
Homepage:
N/A
License:
MIT
Created:
12 days ago
Latest Version:
0.1.0 (12 days ago)
Factorio version:
2.1
Downloaded by:
27 users

SE Fish Collision Fixed

Tiny compatibility fix for Space Exploration.

The problem

Space Exploration’s postprocess mod rewrites the collision mask of normal fish and drops the colliding_with_tiles_only flag.
As a result fish collide with boats (and other entities).

The fix

This mod runs after space-exploration-postprocess and simply restores the missing flag:

```lua
for _, prototype in pairs(data.raw.fish) do
if prototype.collision_mask then
prototype.collision_mask.colliding_with_tiles_only = true
end
end