diff --git a/src/main/java/ru/ruscalworld/fabricexporter/MetricRegistry.java b/src/main/java/ru/ruscalworld/fabricexporter/MetricRegistry.java index 10eb26d..0ed7dc6 100644 --- a/src/main/java/ru/ruscalworld/fabricexporter/MetricRegistry.java +++ b/src/main/java/ru/ruscalworld/fabricexporter/MetricRegistry.java @@ -34,8 +34,11 @@ public class MetricRegistry { this.registerMetric(new Entities()); this.registerMetric(new LoadedChunks()); this.registerMetric(new TotalLoadedChunks()); - this.registerMetric(new TicksPerSecond()); - this.registerMetric(new MillisPerTick()); + + if (this.getExporter().getConfig().shouldUseSpark()) { + this.registerMetric(new TicksPerSecond()); + this.registerMetric(new MillisPerTick()); + } this.registerCustomMetric("handshakes", new Counter.Builder() .name(getMetricName("handshakes"))