geforkt von Mirrors/Paper
Fix main thread priority being lowered (#9488)
Dieser Commit ist enthalten in:
Ursprung
975444e5d2
Commit
49502449bb
@ -83,10 +83,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
|
@@ -0,0 +0,0 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
|
||||||
S s0 = serverFactory.apply(thread); // CraftBukkit - decompile error
|
thread.setUncaughtExceptionHandler((thread1, throwable) -> {
|
||||||
|
MinecraftServer.LOGGER.error("Uncaught exception in server thread", throwable);
|
||||||
atomicreference.set(s0);
|
});
|
||||||
+ thread.setPriority(Thread.NORM_PRIORITY+2); // Paper - boost priority
|
+ thread.setPriority(Thread.NORM_PRIORITY+2); // Paper - boost priority
|
||||||
thread.start();
|
if (Runtime.getRuntime().availableProcessors() > 4) {
|
||||||
return s0;
|
thread.setPriority(8);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren