aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/minion
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 13:50:53 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 13:50:53 +0200
commitd19350d4b0b99f6b04680aba9686ddbe1e7df780 (patch)
treeabb8859f13f2f03ebf9457624f8f2cbae6496b00 /src/main/java/at/hannibal2/skyhanni/features/minion
parente04efa84f7d42ddcbe11eb65f25adc0e524a3aaa (diff)
downloadskyhanni-d19350d4b0b99f6b04680aba9686ddbe1e7df780.tar.gz
skyhanni-d19350d4b0b99f6b04680aba9686ddbe1e7df780.tar.bz2
skyhanni-d19350d4b0b99f6b04680aba9686ddbe1e7df780.zip
Changing internalName to getInternalName_old, and getInternalName_new to internalName
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/minion')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionCollectLogic.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCollectLogic.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCollectLogic.kt
index 05aefc1f4..1615838ae 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCollectLogic.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCollectLogic.kt
@@ -4,7 +4,7 @@ import at.hannibal2.skyhanni.api.CollectionAPI
import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.MinionOpenEvent
import at.hannibal2.skyhanni.utils.InventoryUtils
-import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName_new
+import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUItems
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -21,7 +21,7 @@ class MinionCollectLogic {
private fun count(): MutableMap<NEUInternalName, Int> {
val map = mutableMapOf<NEUInternalName, Int>()
for (stack in InventoryUtils.getItemsInOwnInventory()) {
- val internalName = stack.getInternalName_new()
+ val internalName = stack.getInternalName()
val (newId, amount) = NEUItems.getMultiplier(internalName)
val old = map[newId] ?: 0
map[newId] = old + amount * stack.stackSize