mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@df3b654 ConcurrentUtil: Fix concurrent long map resize chain pull function PaperMC/Paper@5a5c3a4 Remove chunk unload trace debug PaperMC/Paper@7e44684 Fix wrong assumption about locale being null in the login phase (#11204) Gale Changes: Dreeam-qwq/Gale@ac42d6b Remove Optimize entity coordinate key Dreeam-qwq/Gale@6ce6bd0 Add back Optimize random calls in chunk ticking Dreeam-qwq/Gale@a8aff53 Fix fluidStateCount increment Purpur Changes: PurpurMC/Purpur@9e444c5 Add Entities can use portals patch back (#1571) PurpurMC/Purpur@930003b Updated Upstream (Paper) Leaves Changes: LeavesMC/Leaves@bb803a9 [release-skip] Move protocol config LeavesMC/Leaves@c279af4 Fix fortress mob spawn (#227) LeavesMC/Leaves@e6ca163 Update Paper LeavesMC/Leaves@a1fb5ff [ci skip] reduce cloud upload connect timeout LeavesMC/Leaves@a8897bd fix CraftScheduler internal plugin logging issue (#284) LeavesMC/Leaves@91ab4ed Try fix (#286) LeavesMC/Leaves@ec274f5 Remove Attack Self LeavesMC/Leaves@ffdcaa8 Update Paper LeavesMC/Leaves@a7b7a1a Fix Fakeplayer Action LeavesMC/Leaves@cd53d4c Try to fix #291, #292 (#293) LeavesMC/Leaves@e2db81a Fix #294 LeavesMC/Leaves@248cb93 Update Paper
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Tue, 13 Sep 2022 16:59:31 +0800
|
|
Subject: [PATCH] Leaves: Server Utils
|
|
|
|
TODO: Check whether Leaves's Return-nether-portal-fix.patch improves performance
|
|
and change store way to sql maybe?
|
|
|
|
Original license: GPLv3
|
|
Original project: https://github.com/LeavesMC/Leaves
|
|
|
|
Commit: 248cb933f1a67a50a94352da2c100722e4635575
|
|
|
|
diff --git a/src/main/java/org/leavesmc/leaves/LeavesLogger.java b/src/main/java/org/leavesmc/leaves/LeavesLogger.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..47347a3bdab2ff9818bf8198291d2dabec7da8c6
|
|
--- /dev/null
|
|
+++ b/src/main/java/org/leavesmc/leaves/LeavesLogger.java
|
|
@@ -0,0 +1,24 @@
|
|
+package org.leavesmc.leaves;
|
|
+
|
|
+import org.bukkit.Bukkit;
|
|
+
|
|
+import java.util.logging.Level;
|
|
+import java.util.logging.Logger;
|
|
+
|
|
+public class LeavesLogger extends Logger {
|
|
+ public static final LeavesLogger LOGGER = new LeavesLogger();
|
|
+
|
|
+ private LeavesLogger() {
|
|
+ super("Leaves", null);
|
|
+ setParent(Bukkit.getLogger());
|
|
+ setLevel(Level.ALL);
|
|
+ }
|
|
+
|
|
+ public void severe(String msg, Exception exception) {
|
|
+ this.severe(msg + ", " + exception.getCause() + ": " + exception.getMessage());
|
|
+ }
|
|
+
|
|
+ public void warning(String msg, Exception exception) {
|
|
+ this.warning(msg + ", " + exception.getCause() + ": " + exception.getMessage());
|
|
+ }
|
|
+}
|