aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-24 18:41:42 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-24 18:41:42 +0200
commit019f3630776c6f4b4eedd41c25aa4f36b99ccf5b (patch)
treea80f2ec8519c351860395684fc2be5beff6f2f23 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
parent1ec8a4ebb6165b2e2983eb880b9ec0afc81ce57c (diff)
downloadnotenoughupdates-019f3630776c6f4b4eedd41c25aa4f36b99ccf5b.tar.gz
notenoughupdates-019f3630776c6f4b4eedd41c25aa4f36b99ccf5b.tar.bz2
notenoughupdates-019f3630776c6f4b4eedd41c25aa4f36b99ccf5b.zip
Fix show pet exp on tooltip in pv
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 22cbf04d..51810c2d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -1496,7 +1496,14 @@ public class GuiProfileViewer extends GuiScreen {
for(int i=petsPage*20; i<Math.min(petsPage*20+20, Math.min(sortedPetsStack.size(), sortedPets.size())); i++) {
JsonObject pet = sortedPets.get(i);
ItemStack stack = sortedPetsStack.get(i);
+
+
if(pet != null) {
+ {
+ NBTTagCompound tag = stack.getTagCompound();
+ tag.setBoolean("DisablePetExp", true);
+ stack.setTagCompound(tag);
+ }
int xIndex = (i%20) % COLLS_XCOUNT;
int yIndex = (i%20) / COLLS_XCOUNT;