mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
Add display and calculation stuff for maximum damage with thrown weapons
This commit is contained in:
1 parent
92fd2cc222
commit
525baf8aad
6 files changed
+51
-7
No files matched your search
@@ -77,9 +77,12 @@ public class ThrowingKnife extends AmmoWeapon {
|
||||
|
||||
@Override
|
||||
protected Entity createProjectile(ItemStack reference, World world, EntityPlayer player, float accuracy) {
|
||||
float speed = 1.5f;
|
||||
return new ThrowingKnifeEntity(world, player, getProjectileSpeed(), accuracy, reference);
|
||||
}
|
||||
|
||||
return new ThrowingKnifeEntity(world, player, speed, accuracy, reference);
|
||||
@Override
|
||||
public float getProjectileSpeed() {
|
||||
return 1.5f;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
||||
Reference in new issue
Block a user