diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-31 23:04:00 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-31 23:04:00 +0200 |
commit | 84462ba8b20c28136c6a7923323f7cde28a86d70 (patch) | |
tree | a568e3ef01c16deff469dd3612023263603cc2f9 /src/Entities/EntityEffect.cpp | |
parent | Merge pull request #1267 from mc-server/RoofedForest (diff) | |
download | cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.tar cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.tar.gz cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.tar.bz2 cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.tar.lz cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.tar.xz cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.tar.zst cuberite-84462ba8b20c28136c6a7923323f7cde28a86d70.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/EntityEffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/EntityEffect.cpp b/src/Entities/EntityEffect.cpp index fdcbe822e..39314f256 100644 --- a/src/Entities/EntityEffect.cpp +++ b/src/Entities/EntityEffect.cpp @@ -309,7 +309,7 @@ void cEntityEffectHunger::OnTick(cPawn & a_Target) if (a_Target.IsPlayer()) { cPlayer & Target = (cPlayer &) a_Target; - Target.SetFoodExhaustionLevel(Target.GetFoodExhaustionLevel() + 0.025); // 0.5 per second = 0.025 per tick + Target.AddFoodExhaustion(0.025 * ((double)GetIntensity() + 1.0)); // 0.5 per second = 0.025 per tick } } |