Multiple enhancements and fixes to minecarts
+ They are destroyed instantly by creative mode * Physics is much improved + Basic implementation of powered rails
This commit is contained in:
@@ -321,7 +321,10 @@ void cEntity::DoTakeDamage(TakeDamageInfo & a_TDI)
|
||||
m_Health = 0;
|
||||
}
|
||||
|
||||
AddSpeed(a_TDI.Knockback * 2);
|
||||
if (IsMob() || IsPlayer()) // Knockback for only players and mobs
|
||||
{
|
||||
AddSpeed(a_TDI.Knockback * 2);
|
||||
}
|
||||
|
||||
m_World->BroadcastEntityStatus(*this, ENTITY_STATUS_HURT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user