aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index 9cc7a7d..e709a9b 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -1342,8 +1342,13 @@ function advtrains.register_wagon(sysname_p, prototype, desc, inv_img, nincreati
advtrains.wagon_prototypes[sysname] = prototype
--group classification to make recipe searching easier
- local wagon_groups = { not_in_creative_inventory = nincreative and 1 or 0}
- if prototype.is_locomotive then wagon_groups['at_loco'] = 1 end
+ local wagon_groups = {
+ not_in_creative_inventory = nincreative and 1 or 0,
+ at_wagon = 1,
+ }
+ if prototype.is_locomotive then
+ wagon_groups['at_loco'] = 1
+ end
if prototype.seat_groups then
if prototype.seat_groups.dstand then wagon_groups['at_control'] = 1 end
if prototype.seat_groups.pass then wagon_groups['at_pax'] = 1 end