diff options
author | archshift <admin@archshift.com> | 2014-08-03 07:27:27 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-08-03 07:27:27 +0200 |
commit | 3ffec92e7930c0b4bb14073f23a9d12313bd6cbc (patch) | |
tree | 4255fd284a083e82def1cc5edcb960180014f192 /src | |
parent | Entity.cpp: On portal check, use if-else for current dimension (diff) | |
download | cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.tar cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.tar.gz cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.tar.bz2 cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.tar.lz cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.tar.xz cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.tar.zst cuberite-3ffec92e7930c0b4bb14073f23a9d12313bd6cbc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 9 | ||||
-rw-r--r-- | src/Entities/Player.h | 3 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index ca3b1f367..d3d5a61d4 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -580,15 +580,6 @@ void cPlayer::AddFoodExhaustion(double a_Exhaustion) -void cPlayer::FoodPoison(int a_NumTicks) -{ - AddEntityEffect(cEntityEffect::effHunger, a_NumTicks, 0, 1); -} - - - - - void cPlayer::StartEating(void) { // Set the timer: diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 917e87a89..e3203d6d1 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -286,9 +286,6 @@ public: /** Adds the specified exhaustion to m_FoodExhaustion. Expects only positive values. */ void AddFoodExhaustion(double a_Exhaustion); - /** Starts the food poisoning for the specified amount of ticks */ - void FoodPoison(int a_NumTicks); - /** Returns true if the player is currently in the process of eating the currently equipped item */ bool IsEating(void) const { return (m_EatingFinishTick >= 0); } |