aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-11-20 00:11:08 +0900
committersyeyoung <cyoung06@naver.com>2022-11-20 00:11:08 +0900
commit9c169734cd960705eb70c052e51f9fab2ab74ab6 (patch)
tree7e47788bc68f57483a9b9cc9ff9ccf518946dbd8 /mod/src/main/java/kr/syeyoung
parentcce3c344e3a2219cbafbef0a988304af9b5e2cb1 (diff)
downloadSkyblock-Dungeons-Guide-9c169734cd960705eb70c052e51f9fab2ab74ab6.tar.gz
Skyblock-Dungeons-Guide-9c169734cd960705eb70c052e51f9fab2ab74ab6.tar.bz2
Skyblock-Dungeons-Guide-9c169734cd960705eb70c052e51f9fab2ab74ab6.zip
- Check if player is null in 'transform'
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java1
1 files changed, 1 insertions, 0 deletions
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"