mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
quick fix : Unnecessary boxing / unboxing
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user