mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-28 11:29:11 +00:00
Fix erros in console has no color caused by unable to create terminal
This commit is contained in:
@@ -1,19 +1,29 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
||||
Date: Tue, 26 Dec 2023 02:04:01 -0500
|
||||
Subject: [PATCH] Fix TerminalConsoleAppender NPE error on server closed
|
||||
Subject: [PATCH] Fix TerminalConsoleAppender NPE error on server closed and
|
||||
other issues
|
||||
|
||||
This patch use own fork of terminalconsoleappender to fix some issues,
|
||||
since the original version doesn't compatible with latest version of jline or log4j
|
||||
You can find the fork on https://github.com/Dreeam-qwq/TerminalConsoleAppender
|
||||
|
||||
Fixed NPE error when server losed.
|
||||
Fixed errors in console has no color,also fixed`Advanced terminal features are not available in this environment`
|
||||
or `Unable to create terminal` like issues
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index eb622ea1c419bc0d514b77af0860ab08e0aa2822..8f5648aa89f3a2a66d67cc8810dd9ace5436996f 100644
|
||||
index eb622ea1c419bc0d514b77af0860ab08e0aa2822..11cb6ec93af0b2dff5d52f2adb90fbef95bdc668 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -23,7 +23,7 @@ dependencies {
|
||||
@@ -23,7 +23,9 @@ dependencies {
|
||||
// Gale end - project setup
|
||||
// Paper start
|
||||
implementation("org.jline:jline-terminal-jansi:3.25.0") // Leaf - Bump Dependencies
|
||||
- implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
||||
+ implementation("com.github.Dreeam-qwq:TerminalConsoleAppender:af5a442f") // Leaf - Fix TerminalConsoleAppender NPE error on server closed
|
||||
+ // Leaf start - Use own TerminalConsoleAppender fork, fixed NPE error when server close & can't create terminal issue under latest version of jline/log4j
|
||||
+ implementation("com.github.Dreeam-qwq:TerminalConsoleAppender:1.4.1-SNAPSHOT")
|
||||
+ // Leaf end
|
||||
implementation("net.kyori:adventure-text-serializer-ansi:4.15.0") // Keep in sync with adventureVersion from Paper-API build file // Leaf - Bump Dependencies
|
||||
implementation("net.kyori:ansi:1.0.3") // Manually bump beyond above transitive dep
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user