Skip to content

Commit d8105bb

Browse files
committed
Make rails a secondary entity so that cars and other things on top announce first
1 parent b8d7c90 commit d8105bb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/entity-selection.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ function mod.ent_is_primary(ent, pindex)
2727
and ent.type ~= "corpse"
2828
and ent.type ~= "rocket-silo-rocket-shadow"
2929
and ent.type ~= "resource"
30+
and ent.type ~= "straight-rail"
31+
and ent.type ~= "curved-rail"
32+
and ent.type ~= "legacy-straight-rail"
33+
and ent.type ~= "legacy-curved-rail"
3034
and (ent.type ~= "character" or ent.player ~= pindex)
3135
end
3236

0 commit comments

Comments
 (0)