summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-25 14:46:50 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-25 14:46:50 +0200
commit67308e4337b422ebefb249049e662266072b0ba2 (patch)
treece53f82dce809e9e23ed2bce965d9f2c192b0a28
parentHopefully fixed piston duplication issues (diff)
downloadcuberite-67308e4337b422ebefb249049e662266072b0ba2.tar
cuberite-67308e4337b422ebefb249049e662266072b0ba2.tar.gz
cuberite-67308e4337b422ebefb249049e662266072b0ba2.tar.bz2
cuberite-67308e4337b422ebefb249049e662266072b0ba2.tar.lz
cuberite-67308e4337b422ebefb249049e662266072b0ba2.tar.xz
cuberite-67308e4337b422ebefb249049e662266072b0ba2.tar.zst
cuberite-67308e4337b422ebefb249049e662266072b0ba2.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 0eacb67f9..1e1e868e7 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -551,7 +551,7 @@ bool cPlayer::Feed(int a_Food, double a_Saturation)
}
m_FoodLevel = std::min(a_Food + m_FoodLevel, (int)MAX_FOOD_LEVEL);
- m_FoodSaturationLevel = std::min(m_FoodSaturationLevel + a_Saturation, (double)m_FoodLevel);
+ m_FoodSaturationLevel = m_FoodSaturationLevel + a_Saturation;
SendHealth();
return true;