Skip to content

Commit

Permalink
Should return after giving error due to attempting to profile at the …
Browse files Browse the repository at this point in the history
…same time as another player
  • Loading branch information
LunNova committed Dec 6, 2016
1 parent 26c94e5 commit 11573fc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private boolean process(final ICommandSender commandSender, List<String> argumen
final EntityTickProfiler entityTickProfiler = EntityTickProfiler.INSTANCE;
if (!entityTickProfiler.startProfiling(() -> sendChat(commandSender, entityTickProfiler.writeStringData(new TableFormatter(commandSender)).toString()), type, time, worlds)) {
sendChat(commandSender, "Someone else is currently profiling.");
return false;
}
if (type == ProfilingState.CHUNK_ENTITIES) {
entityTickProfiler.setLocation(x, z);
Expand Down

0 comments on commit 11573fc

Please sign in to comment.