From 9c169734cd960705eb70c052e51f9fab2ab74ab6 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 20 Nov 2022 00:11:08 +0900 Subject: - Check if player is null in 'transform' Signed-off-by: syeyoung --- mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java | 1 + 1 file changed, 1 insertion(+) (limited to 'mod/src/main/java/kr/syeyoung') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java index 77758ac6..fad86a11 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java @@ -266,6 +266,7 @@ public class DungeonsGuide implements DGInterface { // hotswap fails in dev env due to intellij auto log collection or smth. it holds ref to stacktrace. private void transform(AbstractClientPlayer abstractClientPlayer) { + if (abstractClientPlayer == null) return; NetworkPlayerInfo uuidNetworkPlayerInfoEntry = ReflectionHelper.getPrivateValue(AbstractClientPlayer.class, abstractClientPlayer, "playerInfo", "field_175157_a", "a" -- cgit