[0.18.18] Correction to LuaEntity.train documentation
Posted: Fri Apr 17, 2020 4:36 am
LuaEntity.train reads:
The second line is incorrect, .train can be used on an entity that isn't a RollingStock, in which case it returns nil (as stated in the first line).The train this rolling stock belongs to or nil if not rolling stock.
Can only be used if this is RollingStock