aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-04 10:33:56 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-04 10:33:56 +0200
commit834d1713f15cfb201295a95a0f07ef73119dcf0d (patch)
tree32134112f76cf06a17e00162d9f6b2bf7528ecd5 /src/main/java
parent7cf59589d03388b63740a9c02d097cc405f82d8d (diff)
downloadNotEnoughUpdates-834d1713f15cfb201295a95a0f07ef73119dcf0d.tar.gz
NotEnoughUpdates-834d1713f15cfb201295a95a0f07ef73119dcf0d.tar.bz2
NotEnoughUpdates-834d1713f15cfb201295a95a0f07ef73119dcf0d.zip
changed one mine so that efefury is happy)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java
index 78e51c0a..3478179a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java
@@ -82,8 +82,8 @@ public class MinionHelperManager {
Container inventoryContainer = minecraft.thePlayer.openContainer;
if (!(inventoryContainer instanceof ContainerChest)) return false;
ContainerChest containerChest = (ContainerChest) inventoryContainer;
- return containerChest.getLowerChestInventory().getDisplayName()
- .getUnformattedText().equalsIgnoreCase("Crafted Minions");
+ String name = containerChest.getLowerChestInventory().getDisplayName().getUnformattedText();
+ return name.equalsIgnoreCase("Crafted Minions");
}
public boolean isReadyToUse() {
@@ -266,7 +266,7 @@ public class MinionHelperManager {
public void setLocalPelts(int pelts) {
localPelts = pelts;
- if (localPelts != -1){
+ if (localPelts != -1) {
ApiData apiData = api.getApiData();
if (apiData != null) {
apiData.setPeltCount(localPelts);