mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fix : Unnecessary boxing / unboxing
This commit is contained in:
1 parent
83a1fa7957
commit
d6b69264b9
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;
|
||||
|
||||
@@ -131,7 +131,7 @@ public class ModLapis extends ItemModTypeFilter {
|
||||
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;
|
||||
|
||||
@@ -401,7 +401,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
|
||||
// TODO is this needed???
|
||||
// crashreportcategory.addCrashSection("Item ID",
|
||||
// Integer.valueOf(par1ItemStack.itemID));
|
||||
crashreportcategory.addCrashSection("Item data", Integer.valueOf(par1ItemStack.getItemDamage()));
|
||||
crashreportcategory.addCrashSection("Item data", par1ItemStack.getItemDamage());
|
||||
// crashreportcategory.addCrashSectionCallable("Item name", new
|
||||
// CallableItemName(this, par1ItemStack));
|
||||
throw new ReportedException(crashreport);
|
||||
|
||||
@@ -97,8 +97,8 @@ public class CraftingRecipeHelper {
|
||||
for (int var16 = 0; var16 < var5 * var6; ++var16) {
|
||||
char var10 = var3.charAt(var16);
|
||||
|
||||
if (var12.containsKey(Character.valueOf(var10))) {
|
||||
var15[var16] = ((ItemStack) var12.get(Character.valueOf(var10))).copy();
|
||||
if (var12.containsKey(var10)) {
|
||||
var15[var16] = ((ItemStack) var12.get(var10)).copy();
|
||||
} else {
|
||||
var15[var16] = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user