aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtnhlanth/common/tileentity/recipe/beamline
diff options
context:
space:
mode:
authorAlexdoru <57050655+Alexdoru@users.noreply.github.com>2024-10-02 07:31:08 +0200
committerGitHub <noreply@github.com>2024-10-02 05:31:08 +0000
commit3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3 (patch)
tree107d9d2442891990ef1cdef1d8bb2df6bb96952a /src/main/java/gtnhlanth/common/tileentity/recipe/beamline
parentbfc7b2b07f72d0903a70791ff96f9c837ddd5ff0 (diff)
downloadGT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.tar.gz
GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.tar.bz2
GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.zip
Cleanup the codebase (#3311)
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gtnhlanth/common/tileentity/recipe/beamline')
-rw-r--r--src/main/java/gtnhlanth/common/tileentity/recipe/beamline/RecipeSC.java4
-rw-r--r--src/main/java/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/RecipeSC.java b/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/RecipeSC.java
index 979cb6a8bb..162b94b75e 100644
--- a/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/RecipeSC.java
+++ b/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/RecipeSC.java
@@ -35,13 +35,11 @@ public class RecipeSC extends GTRecipe {
@Override
public ItemStack getRepresentativeOutput(int aIndex) {
- ArrayList<ItemStack> mOutputsWithParticle = new ArrayList<>();
-
ItemStack particleStack = new ItemStack(LanthItemList.PARTICLE_ITEM);
Items.ender_pearl.setDamage(particleStack, this.particleId);
- mOutputsWithParticle.addAll(Arrays.asList(mOutputs));
+ ArrayList<ItemStack> mOutputsWithParticle = new ArrayList<>(Arrays.asList(mOutputs));
mOutputsWithParticle.add(particleStack);
ItemStack[] mOutputsWithParticleArray = mOutputsWithParticle.toArray(new ItemStack[0]);
diff --git a/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java b/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java
index 87852381e6..a61084204b 100644
--- a/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java
+++ b/src/main/java/gtnhlanth/common/tileentity/recipe/beamline/TargetChamberFrontend.java
@@ -81,8 +81,7 @@ public class TargetChamberFrontend extends RecipeMapFrontend {
* posList.add(posParticle); posList.addAll(UIHelper.getGridPositions(itemInputCount - 1, 36, 28, 3));
*/
- List<Pos2d> posList = Util.getGridPositions(itemInputCount, 8, 20, 3, 1, 20);
- return posList;
+ return Util.getGridPositions(itemInputCount, 8, 20, 3, 1, 20);
}
private String getEUtDisplay(OverclockCalculator calculator) {