From 35b05eb044ceff4523be5aac5152ffff39c590d1 Mon Sep 17 00:00:00 2001 From: Ap_Tx <3045929398@qq.com> Date: Tue, 6 Oct 2026 21:34:58 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20onClientRequest=E6=89=93=E5=8D=B0obj?= =?UTF-8?q?=E6=98=AF=E5=90=A6null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/zly2006/carpetslsaddition/util/BoardManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/github/zly2006/carpetslsaddition/util/BoardManager.java b/src/main/java/com/github/zly2006/carpetslsaddition/util/BoardManager.java index 8171d82..69a1eb1 100644 --- a/src/main/java/com/github/zly2006/carpetslsaddition/util/BoardManager.java +++ b/src/main/java/com/github/zly2006/carpetslsaddition/util/BoardManager.java @@ -106,6 +106,8 @@ public final class BoardManager { Objective obj = objectiveName == null || objectiveName.isEmpty() ? null : server.getScoreboard().getObjective(objectiveName); + ServerMain.LOGGER.info("[SLSA-BOARD] onClientRequest player={} name={} obj={}", + player.getScoreboardName(), objectiveName, obj); // 直接给该玩家发 display 包(slot=SIDEBAR,objective 可为 null 表示清除) player.connection.send(new net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket( net.minecraft.world.scores.DisplaySlot.SIDEBAR, obj));