From 89570391657bd23e06c8331639fc8f4c4daaafee Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 9 May 2021 22:09:29 +0900 Subject: check for null on inv --- .../features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/kr') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java index 662f8389..8c152fa8 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java @@ -334,7 +334,7 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen } GL11.glEnable(GL11.GL_SCISSOR_TEST); - if (drawInv) { + if (drawInv && playerProfile.get().getInventory() != null) { int startX = 81; int startY = 86; MPanel.clip(scaledResolution, popupRect.x+startX-1, popupRect.y+startY-1, 164, 74); -- cgit