Players in creative and spectator aren't affected by cacti (#3824)
This commit is contained in:
parent
445abe001a
commit
cf22bc4e60
@ -911,7 +911,10 @@ void cEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
||||
m_TicksSinceLastVoidDamage = 0;
|
||||
}
|
||||
|
||||
if (IsMob() || IsPlayer() || IsPickup() || IsExpOrb())
|
||||
if (
|
||||
IsMob() || IsPickup() || IsExpOrb() ||
|
||||
(IsPlayer() && !((reinterpret_cast<cPlayer *>(this))->IsGameModeCreative() || (reinterpret_cast<cPlayer *>(this))->IsGameModeSpectator()))
|
||||
)
|
||||
{
|
||||
DetectCacti();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user