Skip to content

Commit

Permalink
ref: changed output
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 20, 2024
1 parent 3e3e36f commit 0796108
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,14 @@ public static void loadSignal(final SignalStateLoadHoler info,
loadSignals(ImmutableList.of(info), player);
}

private static int count = 0;

public static void loadSignals(final List<SignalStateLoadHoler> signals,
final @Nullable EntityPlayer player) {
if (signals == null || signals.isEmpty())
return;
threadService.execute(() -> {
System.out.println("Starting Executing Thread " + Thread.currentThread());
System.out.println("Count: " + ++count);
signals.forEach(info -> {
boolean isLoaded = false;
synchronized (SIGNAL_COUNTER) {
Expand Down Expand Up @@ -569,7 +571,7 @@ public static void loadSignals(final List<SignalStateLoadHoler> signals,
}
}
});
System.out.println("Finished Executing Thread " + Thread.currentThread());
System.out.println("Count: " + --count);
});
}

Expand Down

0 comments on commit 0796108

Please sign in to comment.