diff options
author | Lulonaut <67191924+Lulonaut@users.noreply.github.com> | 2022-06-16 11:43:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 11:43:20 +0200 |
commit | 7b427b5a6cac1afe064a8225a5749557ac0aad62 (patch) | |
tree | c720d3de068f1de1f5c341333648943eaa5b7d46 /src | |
parent | d36b402fbf7f30757e0169bab81a974ddc7d3e76 (diff) | |
download | NotEnoughUpdates-7b427b5a6cac1afe064a8225a5749557ac0aad62.tar.gz NotEnoughUpdates-7b427b5a6cac1afe064a8225a5749557ac0aad62.tar.bz2 NotEnoughUpdates-7b427b5a6cac1afe064a8225a5749557ac0aad62.zip |
equipment npe (#168)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 5b1d3c14..8ed11dd8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -1899,6 +1899,10 @@ public class NEUOverlay extends Gui { private String lastProfile; private ItemStack getWardrobeSlot(int armourSlot) { + if (SBInfo.getInstance().currentProfile == null) { + return null; + } + if (!Objects.equals(SBInfo.getInstance().currentProfile, lastProfile)) { lastProfile = SBInfo.getInstance().currentProfile; slot1 = null; |