quick fix : Redundant local variable

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 25522dae75
commit d44b7ece32
16 files changed
+23 -55

No files matched your search

@@ -31,7 +31,7 @@ public class CraftingSlab extends InventorySlab {
/* Rendering */
@Override
public String[] getTextureNames() {
String[] textureNames = {
return new String[]{
"craftingstation_top",
"craftingstation_slab_side",
"craftingstation_bottom",
@@ -51,8 +51,6 @@ public class CraftingSlab extends InventorySlab {
"toolforge_slab_side",
"toolforge_top"
};
return textureNames;
}
@Override
@@ -30,9 +30,7 @@ public class CraftingStationBlock extends InventoryBlock {
/* Rendering */
@Override
public String[] getTextureNames() {
String[] textureNames = {"craftingstation_top", "craftingstation_side", "craftingstation_bottom"};
return textureNames;
return new String[]{"craftingstation_top", "craftingstation_side", "craftingstation_bottom"};
}
@Override
@@ -44,9 +44,7 @@ public class FurnaceSlab extends InventorySlab {
@Override
public String[] getTextureNames() {
String[] textureNames = {"furnaceslab_front", "furnaceslab_front_active", "furnaceslab_side", "furnace_top"};
return textureNames;
return new String[]{"furnaceslab_front", "furnaceslab_front_active", "furnaceslab_side", "furnace_top"};
}
@Override
@@ -35,7 +35,7 @@ public class ToolStationBlock extends InventoryBlock {
/* Rendering */
@Override
public String[] getTextureNames() {
String[] textureNames = {
return new String[]{
"toolstation_top",
"toolstation_side",
"toolstation_bottom",
@@ -67,8 +67,6 @@ public class ToolStationBlock extends InventoryBlock {
"stenciltable_jungle_side",
"stenciltable_jungle_bottom"
};
return textureNames;
}
@Override
@@ -52,9 +52,8 @@ public class InventoryCraftingStationResult extends InventoryCraftResult {
public ItemStack decrStackSize(int par1, int par2) {
ItemStack stack = logic.getStackInSlot(0);
if (stack != null) {
ItemStack itemstack = stack;
logic.setInventorySlotContents(0, null);
return itemstack;
return stack;
} else {
return null;
}
@@ -76,9 +76,7 @@ public class BattlesignLogic extends EquipLogic {
public S35PacketUpdateTileEntity getDescriptionPacket() {
NBTTagCompound compound = new NBTTagCompound();
this.writeToNBT(compound);
S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, compound);
return packet;
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, compound);
}
@Override
@@ -53,9 +53,7 @@ public abstract class EquipLogic extends InventoryLogic {
public S35PacketUpdateTileEntity getDescriptionPacket() {
NBTTagCompound compound = new NBTTagCompound();
this.writeToNBT(compound);
S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, compound);
return packet;
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, compound);
}
@Override