Skip to content

Commit fe46263

Browse files
committed
Added old departure board table
1 parent a96c988 commit fe46263

File tree

6 files changed

+472
-7
lines changed

6 files changed

+472
-7
lines changed

common/src/main/java/de/mrjulsen/crn/block/display/AdvancedDisplayTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void acceptFlapText(int line, List<List<MutableComponent>> text, DisplayL
8888
long dayTime = context.getTargetBlockEntity().getLevel().getDayTime();
8989

9090
queueAdvancedDisplayWorkerTask(() -> {
91-
if (controller != null & controller.getDisplayTypeKey().category().getSource() == EDisplayTypeDataSource.PLATFORM) {
91+
if (controller != null && controller.getDisplayTypeKey().category().getSource() == EDisplayTypeDataSource.PLATFORM) {
9292
List<StationDisplayData> preds = prepare(filter, controller.getDisplayTypeInfo().platformDisplayTrainsCount().apply(controller));
9393

9494
controller.setDepartureData(

common/src/main/java/de/mrjulsen/crn/block/properties/EDisplayType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
public enum EDisplayType implements StringRepresentable, ITranslatableEnum {
1010
TRAIN_DESTINATION((byte)0, "train_destination", ModGuiIcons.TRAIN_DESTINATION, EDisplayTypeDataSource.TRAIN_INFORMATION),
1111
PASSENGER_INFORMATION((byte)1, "passenger_information", ModGuiIcons.PASSENGER_INFORMATION, EDisplayTypeDataSource.TRAIN_INFORMATION),
12-
PLATFORM((byte)2, "platform", ModGuiIcons.PLATFORM_INFORMATION, EDisplayTypeDataSource.PLATFORM);
12+
PLATFORM((byte)2, "platform", ModGuiIcons.PLATFORM_INFORMATION, EDisplayTypeDataSource.PLATFORM),
13+
DEPARTURE_BOARD((byte)3, "departure_board", ModGuiIcons.PLATFORM_INFORMATION, EDisplayTypeDataSource.PLATFORM);
1314

1415
private String name;
1516
private byte id;

0 commit comments

Comments
 (0)