quick fix : Unnecessary boxing / unboxing

This commit is contained in:
Alexdoru committed 2023-01-25 22:02:09 +01:00
1 parent ddf92e5271
commit 91f0707078
4 files changed
+5 -5

No files matched your search

@@ -66,7 +66,7 @@ public class ModButtertouch extends ModBoolean {
boolean hasEnchant = false;
while (iterator.hasNext()) {
NBTTagCompound enchantTag = new NBTTagCompound();
index = ((Integer) iterator.next()).intValue();
index = (Integer) iterator.next();
lvl = (Integer) enchantMap.get(index);
if (index == enchant.effectId) {
hasEnchant = true;