diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-10 23:20:25 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-10 23:20:25 +0100 |
commit | f713780db31e22345a1faf048ab948b1b4e03200 (patch) | |
tree | f05cc95ba5e3eef14c490700456415c6b15bdd7f /source/Entities | |
parent | Bundled fixes [SEE DESC] (diff) | |
download | cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.gz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.bz2 cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.lz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.xz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.zst cuberite-f713780db31e22345a1faf048ab948b1b4e03200.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entities/Pickup.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Entities/Pickup.cpp b/source/Entities/Pickup.cpp index 5bd61effc..f8aae9703 100644 --- a/source/Entities/Pickup.cpp +++ b/source/Entities/Pickup.cpp @@ -31,8 +31,9 @@ cPickup::cPickup(double a_PosX, double a_PosY, double a_PosZ, const cItem & a_It , m_bCollected( false ) , m_bIsPlayerCreated( IsPlayerCreated ) { - m_MaxHealth = 5; - m_Health = 5; + SetGravity(-10.5f); + SetMaxHealth(5); + SetHealth(5); SetSpeed(a_SpeedX, a_SpeedY, a_SpeedZ); } |