mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 06:52:58 +00:00
quick fix : 'if' statement with identical branches
This commit is contained in:
1 parent
04c7d32b53
commit
fc54dde7ce
16 files changed
+39
-84
No files matched your search
@@ -79,9 +79,6 @@ public abstract class Behavior {
|
||||
return (Behavior) behaviorsListBlocks.values().toArray()[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
if (!behaviorsListItems.isEmpty()) {
|
||||
@@ -92,11 +89,9 @@ public abstract class Behavior {
|
||||
return (Behavior) behaviorsListItems.values().toArray()[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Behavior getDefaulBehavior() {
|
||||
|
||||
@@ -110,7 +110,6 @@ public class TileEntityLandmine extends TileEntity implements IInventory {
|
||||
if (inventory[par1].stackSize <= par2) {
|
||||
itemstack = inventory[par1];
|
||||
inventory[par1] = null;
|
||||
return itemstack;
|
||||
} else {
|
||||
itemstack = inventory[par1].splitStack(par2);
|
||||
|
||||
@@ -118,8 +117,8 @@ public class TileEntityLandmine extends TileEntity implements IInventory {
|
||||
inventory[par1] = null;
|
||||
}
|
||||
|
||||
return itemstack;
|
||||
}
|
||||
return itemstack;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@@ -188,15 +187,16 @@ public class TileEntityLandmine extends TileEntity implements IInventory {
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int i, ItemStack itemstack) {
|
||||
// Should automatic camo insertion be allowed.
|
||||
if (i == 3) {
|
||||
return false;
|
||||
} else {
|
||||
// Here for mDiyo to decide if he wants automation for
|
||||
// insertion/extraction of the items to be an option.
|
||||
// Would be useful for building automated mine laying machines.
|
||||
return false;
|
||||
}
|
||||
//// Should automatic camo insertion be allowed.
|
||||
//if (i == 3) {
|
||||
// return false;
|
||||
//} else {
|
||||
// // Here for mDiyo to decide if he wants automation for
|
||||
// // insertion/extraction of the items to be an option.
|
||||
// // Would be useful for building automated mine laying machines.
|
||||
// return false;
|
||||
//}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setSoundPlayed() {
|
||||
|
||||
Reference in new issue
Block a user