aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java4
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java7
3 files changed, 10 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
index 4f3b6187..6aa292eb 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUEventListener.java
@@ -2335,8 +2335,8 @@ public class NEUEventListener {
private List<String> petToolTipXPExtend(ItemTooltipEvent event) {
List<String> tooltipText = new ArrayList();
if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.petExtendExp) {
- if(event.itemStack.getTagCompound().hasKey("ItemList")){
- if(event.itemStack.getTagCompound().getBoolean("ItemList")){
+ if(event.itemStack.getTagCompound().hasKey("DisablePetExp")){
+ if(event.itemStack.getTagCompound().getBoolean("DisablePetExp")){
return tooltipText;
}
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
index 2208b53c..79a822d8 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -1991,7 +1991,7 @@ public class NEUOverlay extends Gui {
ItemStack stack = manager.jsonToStack(json);
{
NBTTagCompound tag = stack.getTagCompound();
- tag.setBoolean("ItemList", true);
+ tag.setBoolean("DisablePetExp", true);
stack.setTagCompound(tag);
}
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;