aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/entities
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-01-18 17:47:59 +0100
committerGitHub <noreply@github.com>2021-01-18 17:47:59 +0100
commit00cfe596dd49c20398dcdeea776f04a02573cc43 (patch)
treee19465225c5361794da4e95f2d6048b20bf55cca /src/main/java/gregtech/common/entities
parent4fa726bd845dce746eaa62a9a9afc2dec993917a (diff)
parent872e69d7f7d0d5b67dfcbb83393f14d20fcbaa9e (diff)
downloadGT5-Unofficial-00cfe596dd49c20398dcdeea776f04a02573cc43.tar.gz
GT5-Unofficial-00cfe596dd49c20398dcdeea776f04a02573cc43.tar.bz2
GT5-Unofficial-00cfe596dd49c20398dcdeea776f04a02573cc43.zip
Merge pull request #413 from GTNewHorizons/mitchej123_cleanup
Clean some shit up
Diffstat (limited to 'src/main/java/gregtech/common/entities')
-rw-r--r--src/main/java/gregtech/common/entities/GT_Entity_Arrow.java7
-rw-r--r--src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java3
2 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java b/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
index 814ab3f8fa..d655a75c99 100644
--- a/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
+++ b/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
@@ -29,8 +29,7 @@ import net.minecraftforge.common.util.FakePlayerFactory;
import java.util.List;
import java.util.UUID;
-public class GT_Entity_Arrow
- extends EntityArrow {
+public class GT_Entity_Arrow extends EntityArrow {
private int mHitBlockX = -1;
private int mHitBlockY = -1;
private int mHitBlockZ = -1;
@@ -327,11 +326,11 @@ public class GT_Entity_Arrow
}
public ItemStack getArrowItem() {
- return GT_Utility.copy(new Object[]{this.mArrow});
+ return GT_Utility.copy(this.mArrow);
}
public void setArrowItem(ItemStack aStack) {
- this.mArrow = GT_Utility.updateItemStack(GT_Utility.copyAmount(1L, new Object[]{aStack}));
+ this.mArrow = GT_Utility.updateItemStack(GT_Utility.copyAmount(1L, aStack));
}
public boolean breaksOnImpact() {
diff --git a/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java b/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java
index d026f8184b..37cdf2643a 100644
--- a/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java
+++ b/src/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java
@@ -7,8 +7,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
-public class GT_Entity_Arrow_Potion
- extends GT_Entity_Arrow {
+public class GT_Entity_Arrow_Potion extends GT_Entity_Arrow {
private int[] mPotions = new int[0];
public GT_Entity_Arrow_Potion(World aWorld) {