mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-29 20:09:17 +00:00
Add back Linear region format
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
||||
Date: Sat, 4 May 2024 02:46:17 -0400
|
||||
Subject: [PATCH] Fix console freeze above JAVA 22
|
||||
|
||||
Revert to old console provider, Fix https://github.com/PaperMC/Paper/issues/10405
|
||||
Solution refers to https://inside.java/2023/07/31/quality-heads-up
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
index b5bf415a61bcc3b605ec776be99b4e184c0f4210..0b8e68ad835e404e971ef5d15790053c89c88149 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
@@ -326,6 +326,7 @@ public class Main {
|
||||
printlnStartupInfoToSystemOut("Loading libraries, please wait..."); // Gale - include time in startup logs
|
||||
|
||||
System.setProperty("org.jline.terminal.disableDeprecatedProviderWarning", "true"); // Leaf - Ignore terminal provider warning
|
||||
+ if (org.galemc.gale.virtualthread.VirtualThreadService.getJavaMajorVersion() >= 22) System.setProperty("jdk.console", "java.base"); // Leaf - Fix console freeze above JAVA 22
|
||||
|
||||
net.minecraft.server.Main.main(options);
|
||||
} catch (Throwable t) {
|
||||
Reference in New Issue
Block a user