Suggestions
This commit is contained in:
parent
f4e3c01a71
commit
79e558be34
@ -22,7 +22,7 @@ void cThrownEggEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_H
|
||||
{
|
||||
TrySpawnChicken(a_HitPos);
|
||||
|
||||
m_DestroyTimer = 5;
|
||||
m_DestroyTimer = 2;
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,7 +41,10 @@ protected:
|
||||
return;
|
||||
}
|
||||
}
|
||||
else { super::Tick(a_Dt, a_Chunk); }
|
||||
else
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
}
|
||||
}
|
||||
|
||||
// Randomly decides whether to spawn a chicken where the egg lands.
|
||||
|
@ -22,7 +22,7 @@ void cThrownEnderPearlEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockF
|
||||
// TODO: Tweak a_HitPos based on block face.
|
||||
TeleportCreator(a_HitPos);
|
||||
|
||||
m_DestroyTimer = 5;
|
||||
m_DestroyTimer = 2;
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,7 +41,10 @@ protected:
|
||||
return;
|
||||
}
|
||||
}
|
||||
else { super::Tick(a_Dt, a_Chunk); }
|
||||
else
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
}
|
||||
}
|
||||
|
||||
/** Teleports the creator where the ender pearl lands */
|
||||
|
@ -20,7 +20,7 @@ cThrownSnowballEntity::cThrownSnowballEntity(cEntity * a_Creator, double a_X, do
|
||||
|
||||
void cThrownSnowballEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace)
|
||||
{
|
||||
m_DestroyTimer = 5;
|
||||
m_DestroyTimer = 2;
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,7 +41,10 @@ protected:
|
||||
return;
|
||||
}
|
||||
}
|
||||
else { super::Tick(a_Dt, a_Chunk); }
|
||||
else
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -135,12 +135,12 @@ public:
|
||||
}
|
||||
|
||||
/** Runs each value of the vector through std::floor() */
|
||||
inline Vector3<T> Floor(void) const
|
||||
inline Vector3<int> Floor(void) const
|
||||
{
|
||||
return Vector3<T>(
|
||||
(T)floor(x),
|
||||
(T)floor(y),
|
||||
(T)floor(z)
|
||||
return Vector3i(
|
||||
(int)floor(x),
|
||||
(int)floor(y),
|
||||
(int)floor(z)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user