Files
AkarinMC/patches/server/0008-Disable-Snooper.patch
ㄗㄠˋ ㄑㄧˊ 173fa1ee6d Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
bc17ce69d Delay unsafe actions until after entity ticking is done - Fixes #3114
5553e6b3e Disable Sync Events firing Async errors during shutdown
e12c51d9b Use better variable for isStopping() API
586ee2bb1 Remove patch for MC-111480, fixed in 1.14
09a942155 Remove streams from Mob AI System
bb5c294ec Fix Disabling Asynchronous Chunks
089d83568 Implement Chunk Priority / Urgency System for World Gen
fce69af70 Use dedicated thread for main thread blocking chunk loads
588b62e47 Add tick times API and /mspt command (#3102)
11de41c77 Add API MinecraftServer#isStopping (#3129)
942ff3c28 My patches are under MIT (#3130)
2020-04-12 12:13:51 +08:00

29 lines
1.4 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?=
<tsao-chi@the-lingo.org>
Date: Thu, 2 Apr 2020 14:03:29 +0800
Subject: [PATCH] Disable Snooper
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index 36e11bb25fce4b63b1a476ccd1b8a3a8e8aab5e8..4740e6e187e345c848a1f54e1f54bb208ecfeb2b 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -1168,6 +1168,8 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
//} // Paper
//this.methodProfiler.enter("snooper"); // Akarin - remove caller
+ // Akarin - Disable Snooper
+ /*
if (((DedicatedServer) this).getDedicatedServerProperties().snooperEnabled && !this.snooper.d() && this.ticks > 100) { // Spigot
this.snooper.a();
}
@@ -1175,6 +1177,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
if (((DedicatedServer) this).getDedicatedServerProperties().snooperEnabled && this.ticks % 6000 == 0) { // Spigot
this.snooper.b();
}
+ */
//this.methodProfiler.exit(); // Akarin - remove caller
//this.methodProfiler.enter("tallying"); // Akarin - remove caller