diff options
author | DarkoGNU <42816979+DarkoGNU@users.noreply.github.com> | 2022-06-28 23:49:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 23:49:41 +0200 |
commit | 25208aefa4232a7e90198adbc542ec8b7c584c70 (patch) | |
tree | 3fbbc14c6d6e2c42d44d7521f430a7f8725bc266 /src/Entities/Pawn.h | |
parent | Fix building with clang 14 (#5428) (diff) | |
download | cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.tar cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.tar.gz cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.tar.bz2 cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.tar.lz cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.tar.xz cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.tar.zst cuberite-25208aefa4232a7e90198adbc542ec8b7c584c70.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Pawn.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h index c0801ebb3..5aae1c21f 100644 --- a/src/Entities/Pawn.h +++ b/src/Entities/Pawn.h @@ -40,8 +40,9 @@ public: fall height > 1.0625 and <= 1.5625: 66% chance of trampling fall height > 1.5625: always trample The values may differ from vanilla, they were determined experimentally. + Additionaly, mobs smaller than 0.512 cubic blocks won't trample. */ - void HandleFarmlandTrampling(double a_FallHeight); + void HandleFarmlandTrampling(double a_FallHeight, BLOCKTYPE a_BlockAtFoot, BLOCKTYPE a_BlockBelow); /** Tells all pawns which are targeting us to stop targeting us. */ void StopEveryoneFromTargetingMe(); |