mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
quick fix : Unused assignment
This commit is contained in:
1 parent
6bf15fdfe3
commit
2b6b01314d
34 files changed
+54
-63
No files matched your search
@@ -189,7 +189,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
|
||||
damageInflicted += this.rand.nextInt(damageInflicted / 2 + 2);
|
||||
}
|
||||
|
||||
DamageSource damagesource = null;
|
||||
DamageSource damagesource;
|
||||
|
||||
if (this.shootingEntity == null) {
|
||||
damagesource = DamageSource.causeArrowDamage(this, this);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class CraftingStationGui extends GuiContainer implements INEIGuiHandler {
|
||||
// Panel positions
|
||||
public String toolName;
|
||||
public GuiTextField text;
|
||||
public String title, body = "";
|
||||
public String title, body;
|
||||
CraftingStationLogic logic;
|
||||
|
||||
private int craftingLeft = 0;
|
||||
|
||||
@@ -95,7 +95,7 @@ public class CraftingStationContainer extends Container {
|
||||
? ((ISidedInventory) inv).getAccessibleSlotsFromSide(accessSide)
|
||||
: null;
|
||||
|
||||
int index = 0, curIndex = 0;
|
||||
int index = 0, curIndex;
|
||||
IInventory curInv;
|
||||
final int invSize = inv.getSizeInventory() * (secondInv != null ? 2 : 1);
|
||||
for (row = 0; row < logic.invRows; row++) {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class CreativeModifier extends Item {
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
if (stack.hasTagCompound()) {
|
||||
String targetLock = "None";
|
||||
String targetLock;
|
||||
targetLock = stack.getTagCompound().getString("TargetLock");
|
||||
targetLock = StatCollector.translateToLocal("infitool." + targetLock.toLowerCase());
|
||||
list.add(StatCollector.translateToLocal("creativeModLock.tooltip") + targetLock);
|
||||
|
||||
@@ -25,7 +25,7 @@ public class ToolPart extends CraftingItem implements IToolPart {
|
||||
String material = "";
|
||||
if (par1ItemStack.getItemDamage() < toolTextureNames.length)
|
||||
material = toolTextureNames[par1ItemStack.getItemDamage()];
|
||||
String name = "";
|
||||
String name;
|
||||
|
||||
if (StatCollector.canTranslate("toolpart." + partName + "." + material)) {
|
||||
name = StatCollector.translateToLocal("toolpart." + partName + "." + material);
|
||||
|
||||
@@ -61,9 +61,7 @@ public class FancyItemRender extends Render {
|
||||
float f6;
|
||||
int i;
|
||||
|
||||
Block block = null;
|
||||
|
||||
block = Block.getBlockFromItem(itemstack.getItem());
|
||||
Block block = Block.getBlockFromItem(itemstack.getItem());
|
||||
|
||||
if (ForgeHooksClient.renderEntityItem(
|
||||
par1EntityItem, itemstack, f2, f3, random, renderManager.renderEngine, field_147909_c, 1)) {
|
||||
|
||||
Reference in new issue
Block a user