summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-02 15:56:07 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-02 15:56:07 +0100
commit0b0aa5554fbb0179e108f0473f4bf732340d1b95 (patch)
tree36239f98c1c8417483af6a13fed586c32dda811c /src/Mobs
parentChanged Signiture of OnUpdate (diff)
parentFixed #620 (diff)
downloadcuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar
cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.gz
cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.bz2
cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.lz
cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.xz
cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.zst
cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Monster.cpp2
-rw-r--r--src/Mobs/Wolf.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 42c7d2899..283ef36e6 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -276,7 +276,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
{
Distance.y = 0;
Distance.Normalize();
- Distance *= 3;
+ Distance *= 5;
SetSpeedX(Distance.x);
SetSpeedZ(Distance.z);
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp
index c0c7892e3..ff324d073 100644
--- a/src/Mobs/Wolf.cpp
+++ b/src/Mobs/Wolf.cpp
@@ -204,6 +204,7 @@ void cWolf::TickFollowPlayer()
{
if (!IsSitting())
{
+ Callback.OwnerPos.y = FindFirstNonAirBlockPosition(Callback.OwnerPos.x, Callback.OwnerPos.z);
TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);
}
}