Skip to content

Commit

Permalink
Remove a redundant entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jan 12, 2024
1 parent eda325f commit 8b11fd6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,14 @@ private static void genSummary(@Nullable LoaderMode mode,
if (mode == LoaderMode.CONTRAPTION || mode == null) {
chat.accept("", white);
chat.accept("Contraption chunk loaders", white);
int contraptions = 0;
int nonTrain = 0;
Set<ChunkLoadManager.LoadedChunkPos> chunks = new HashSet<>();
for (ChunkLoader loader : loaders) {
if (loader instanceof ChunkLoaderMovementBehaviour.SavedState state) {
contraptions++;
if (!state.isTrain) nonTrain++;
chunks.addAll(state.forcedChunks);
}
}
chatRaw.accept(line("Total contraptions", contraptions));
chatRaw.accept(line("Non-train contraptions", nonTrain));
chatRaw.accept(line("Loaded chunks", chunks.size()));
}
Expand Down

0 comments on commit 8b11fd6

Please sign in to comment.