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

@@ -164,9 +164,7 @@ public class Javelin extends AmmoWeapon {
@Override
protected Entity createProjectile(ItemStack reference, World world, EntityPlayer player, float accuracy, int time) {
reference.getTagCompound().getCompoundTag("InfiTool").removeTag("Throwing"); // needed so the NBTs are equal
JavelinEntity entity = new JavelinEntity(world, player, getProjectileSpeed(), accuracy, reference);
return entity;
return new JavelinEntity(world, player, getProjectileSpeed(), accuracy, reference);
}
@Override