aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2021-01-17 20:46:15 -0800
committerJason Mitchell <mitchej@gmail.com>2021-01-17 20:46:15 -0800
commit40a7a150f49aed3f6d4ced7df1c5f852ecc8009f (patch)
tree0e890a29b26a371bc82102a1e8e9b0402c87cdb4 /src/main/java/gregtech/common/entities/GT_Entity_Arrow.java
parentf3e87249e566a8c80a22d1a30dce632abba4033e (diff)
downloadGT5-Unofficial-40a7a150f49aed3f6d4ced7df1c5f852ecc8009f.tar.gz
GT5-Unofficial-40a7a150f49aed3f6d4ced7df1c5f852ecc8009f.tar.bz2
GT5-Unofficial-40a7a150f49aed3f6d4ced7df1c5f852ecc8009f.zip
More removal of commented out code, small formatting adjustments
Diffstat (limited to 'src/main/java/gregtech/common/entities/GT_Entity_Arrow.java')
-rw-r--r--src/main/java/gregtech/common/entities/GT_Entity_Arrow.java7
1 files changed, 3 insertions, 4 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() {