aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);