SE fish collision fixed


Fish will no longer collide with boats or elevated rails.

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