summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-04-05 02:38:43 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-04-12 23:35:07 +0200
commit4cd49d7eca5f8fd53eb98577a1f218a5086704bb (patch)
tree09bf29a1d30a37445796ed70867f934435c4261f /src/Entities/Player.h
parentFixed generator for the Mega Taiga biome (#5129) (diff)
downloadcuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.gz
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.bz2
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.lz
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.xz
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.tar.zst
cuberite-4cd49d7eca5f8fd53eb98577a1f218a5086704bb.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 65dbfaed7..40797fa34 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -86,9 +86,6 @@ public:
static const int MAX_FOOD_LEVEL;
- /** Number of ticks it takes to eat an item */
- static const int EATING_TICKS;
-
// tolua_end
CLASS_PROTODEF(cPlayer)
@@ -371,7 +368,7 @@ public:
void AddFoodExhaustion(double a_Exhaustion);
/** Returns true if the player is currently in the process of eating the currently equipped item */
- bool IsEating(void) const { return (m_EatingFinishTick >= 0); }
+ bool IsEating(void) const { return m_EatingFinishTick >= 0_tick; }
/** Returns true if the player is currently flying */
bool IsFlying(void) const { return m_IsFlying; }
@@ -734,7 +731,7 @@ private:
bool m_IsVisible;
/** The world tick in which eating will be finished. -1 if not eating */
- Int64 m_EatingFinishTick;
+ cTickTimeLong m_EatingFinishTick;
/** Player Xp level */
int m_LifetimeTotalXp;