diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-09-23 01:52:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 17:52:00 +0200 |
commit | 6520c42697fe929316e93e42e8b070e6241cff0e (patch) | |
tree | b0ad7d2b0d56d574a5028d7bc8495545208fe4b9 | |
parent | 90b552d27cd52d045fa6b5243d014ce1f917cd78 (diff) | |
download | NotEnoughUpdates-6520c42697fe929316e93e42e8b070e6241cff0e.tar.gz NotEnoughUpdates-6520c42697fe929316e93e42e8b070e6241cff0e.tar.bz2 NotEnoughUpdates-6520c42697fe929316e93e42e8b070e6241cff0e.zip |
fix pv button not showing on nons (#294)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java index ee14452d..f708fb5f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java @@ -98,7 +98,7 @@ public abstract class MixinGuiContainer extends GuiScreen { if (tag.hasKey("SkullOwner") && tag.getCompoundTag("SkullOwner").hasKey("Name")) { String tagName = tag.getCompoundTag("SkullOwner").getString("Name"); String displayName = Utils.cleanColour(cc.inventorySlots.get(22).getStack().getDisplayName()); - if (displayName.length() - tagName.length() > 0 && tagName.equals(displayName.substring(displayName.length() - tagName.length()))) { + if (displayName.length() - tagName.length() >= 0 && tagName.equals(displayName.substring(displayName.length() - tagName.length()))) { ci.cancel(); this.zLevel = 100.0F; |