From 834d1713f15cfb201295a95a0f07ef73119dcf0d Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 4 Sep 2022 10:33:56 +0200 Subject: changed one mine so that efefury is happy) --- .../notenoughupdates/miscgui/minionhelper/MinionHelperManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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); -- cgit