summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-22 16:44:24 +0100
committerGitHub <noreply@github.com>2020-03-22 16:44:24 +0100
commit076749bd3638becf41a2627370fd6853508b333b (patch)
treecce4b9bcf69ced7cc30a9dc048a568b6a95aaa22
parentFix effect crashes (#4530) (diff)
downloadcuberite-076749bd3638becf41a2627370fd6853508b333b.tar
cuberite-076749bd3638becf41a2627370fd6853508b333b.tar.gz
cuberite-076749bd3638becf41a2627370fd6853508b333b.tar.bz2
cuberite-076749bd3638becf41a2627370fd6853508b333b.tar.lz
cuberite-076749bd3638becf41a2627370fd6853508b333b.tar.xz
cuberite-076749bd3638becf41a2627370fd6853508b333b.tar.zst
cuberite-076749bd3638becf41a2627370fd6853508b333b.zip
-rw-r--r--src/Items/ItemPotion.h5
-rw-r--r--src/Items/ItemThrowable.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/Items/ItemPotion.h b/src/Items/ItemPotion.h
index 28f8002cc..470a7c67f 100644
--- a/src/Items/ItemPotion.h
+++ b/src/Items/ItemPotion.h
@@ -40,7 +40,10 @@ public:
}
Vector3d Pos = a_Player->GetThrowStartPos();
- Vector3d Speed = a_Player->GetLookVector() * 7;
+ Vector3d Speed = a_Player->GetLookVector() * 14;
+
+ // Play sound
+ a_World->BroadcastSoundEffect("entity.arrow.shoot", a_Player->GetPosition() - Vector3d(0, a_Player->GetHeight(), 0), 0.5f, 0.4f / GetRandomProvider().RandReal(0.8f, 1.2f));
if (a_World->CreateProjectile(Pos.x, Pos.y, Pos.z, cProjectileEntity::pkSplashPotion, a_Player, &a_Player->GetEquippedItem(), &Speed) == cEntity::INVALID_ID)
{
diff --git a/src/Items/ItemThrowable.h b/src/Items/ItemThrowable.h
index 706143896..528799630 100644
--- a/src/Items/ItemThrowable.h
+++ b/src/Items/ItemThrowable.h
@@ -106,7 +106,7 @@ class cItemBottleOEnchantingHandler :
typedef cItemThrowableHandler super;
public:
cItemBottleOEnchantingHandler(void) :
- super(E_ITEM_BOTTLE_O_ENCHANTING, cProjectileEntity::pkExpBottle, 10)
+ super(E_ITEM_BOTTLE_O_ENCHANTING, cProjectileEntity::pkExpBottle, 14)
{
}
};