Skip to content

Commit

Permalink
Make 5s rather than 60, and add time taken to the output
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Feb 17, 2024
1 parent 18151e2 commit 0bb9067
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ static Map<Map<Property<?>, Object>, BlockState> generateStateMap(BlockType bloc
watchdog.tick();
}
}
if (System.currentTimeMillis() - startTime > 60000) {
WorldEdit.logger.warn("Took more than 60 seconds to generate complete state map for " + blockType.getId() + ". This block is likely improperly using properties. State count: " + stateMap.size());
long timeTaken = System.currentTimeMillis() - startTime;
if (timeTaken > 5000) {
WorldEdit.logger.warn("Took more than 5 seconds to generate complete state map for " + blockType.getId() + ". This block is likely improperly using properties. State count: " + stateMap.size() + ". " + timeTaken + "ms elapsed.");
}

return stateMap;
Expand Down

0 comments on commit 0bb9067

Please sign in to comment.