mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 06:24:37 +00:00
quick fix : Redundant local variable
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user