Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Librazy committed Jan 12, 2019
1 parent a777b3d commit 8baf1be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cat/nyaa/yasui/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void commandChunkEvents(CommandSender sender, Arguments args) {
World world = getWorld(sender, args);
if (plugin.profilerStatsMonitor == null) {
msg(sender, "user.profiler.not_enabled");

return;
}
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
Deque<Pair<Long, Map<ChunkCoordinate, ProfilerStatsMonitor.ChunkStat>>> redstoneStats = plugin.profilerStatsMonitor.getRedstoneStats(world);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/cat/nyaa/yasui/Yasui.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void onEnable() {
entityListener = new EntityListener(this);
if (config.profiler_listen_event) {
profilerStatsMonitor = new ProfilerStatsMonitor(this);
profilerStatsMonitor.run();
profilerListener = new ProfilerListener(this);
}
}
Expand Down

0 comments on commit 8baf1be

Please sign in to comment.