diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-07-23 18:26:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-23 18:26:48 +0200 |
commit | e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c (patch) | |
tree | 7fd9b748a721523968714d87f290d9123accacf4 /src/Entities/Pawn.cpp | |
parent | Rewrite explosion knock back (#4251) (diff) | |
download | cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.tar cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.tar.gz cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.tar.bz2 cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.tar.lz cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.tar.xz cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.tar.zst cuberite-e27290f7d2d1a9fb0c8e77b73bb6634a43c45d4c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Pawn.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp index 27c04d4b8..fb650e586 100644 --- a/src/Entities/Pawn.cpp +++ b/src/Entities/Pawn.cpp @@ -486,3 +486,13 @@ cEntityEffect * cPawn::GetEntityEffect(cEntityEffect::eType a_EffectType) auto itr = m_EntityEffects.find(a_EffectType); return (itr != m_EntityEffects.end()) ? itr->second.get() : nullptr; } + + + + + +void cPawn::ResetPosition(Vector3d a_NewPosition) +{ + super::ResetPosition(a_NewPosition); + m_LastGroundHeight = GetPosY(); +} |