summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-17 22:15:34 +0200
committermadmaxoft <github@xoft.cz>2014-07-17 22:15:34 +0200
commit2423fbf2efa39e28cc348acc11b9269e573dcdef (patch)
treece58732c3d16aeef3e68e2c3bdcb372199605312 /src/Mobs/Sheep.cpp
parentFixed spaces around single-line comments. (diff)
downloadcuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar
cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.gz
cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.bz2
cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.lz
cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.xz
cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.tar.zst
cuberite-2423fbf2efa39e28cc348acc11b9269e573dcdef.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Sheep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp
index 019f9e6a2..7335848b7 100644
--- a/src/Mobs/Sheep.cpp
+++ b/src/Mobs/Sheep.cpp
@@ -93,12 +93,12 @@ void cSheep::Tick(float a_Dt, cChunk & a_Chunk)
if (m_TimeToStopEating > 0)
{
- m_bMovingToDestination = false; // The sheep should not move when he's eating
+ m_bMovingToDestination = false; // The sheep should not move when he's eating
m_TimeToStopEating--;
if (m_TimeToStopEating == 0)
{
- if (m_World->GetBlock(PosX, PosY, PosZ) == E_BLOCK_GRASS) // Make sure grass hasn't been destroyed in the meantime
+ if (m_World->GetBlock(PosX, PosY, PosZ) == E_BLOCK_GRASS) // Make sure grass hasn't been destroyed in the meantime
{
// The sheep ate the grass so we change it to dirt
m_World->SetBlock(PosX, PosY, PosZ, E_BLOCK_DIRT, 0);