From c42b44e1bfb5d8ee4dbb8e3a580ccd695ed265bd Mon Sep 17 00:00:00 2001 From: agentk20 Date: Sat, 3 Aug 2013 19:28:48 +1000 Subject: [PATCH] Fully Disable Snooper When Not Required diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index f07e022c1..29b2917ce 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -1181,11 +1181,11 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant 100) { + if (((DedicatedServer) this).getDedicatedServerProperties().snooperEnabled && !this.snooper.d() && this.tickCount > 100) { // Spigot this.snooper.a(); } - if (this.tickCount % 6000 == 0) { + if (((DedicatedServer) this).getDedicatedServerProperties().snooperEnabled && this.tickCount % 6000 == 0) { // Spigot this.snooper.b(); } -- 2.25.1