Skip to content

Commit

Permalink
No need for two separate loops in EntityCountingProfiler
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Aug 12, 2018
1 parent b51137d commit 007c5c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public void start() {
// TODO: handle multiple entries, split by ','
worldList.add(DimensionManager.getWorld(Integer.parseInt(worlds)));
}
for (val world : worldList)
for (val world : worldList) {
for (val entity : world.loadedEntityList)
increment(entityCounts, entity.getClass());
for (val world : worldList)
for (val entity : world.loadedTileEntityList)
increment(tileEntityCounts, entity.getClass());
}
targets.forEach(it -> {
val tf = it.getTableFormatter();
tf.heading("Class").heading("Count");
Expand Down

0 comments on commit 007c5c3

Please sign in to comment.