SE fish collision fixed


Fish will no longer collide with boats or elevated rails.

a month ago
2.1
41
Owner:
DonBoobleone
Source:
https://github.com/DonBoobleone/se-fi...
Homepage:
N/A
License:
MIT
Created:
a month ago
Latest Version:
0.1.0 (a month ago)
Factorio version:
2.1
Downloaded by:
41 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