Changed GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cpp
This commit is contained in:
parent
0384c54676
commit
52d956ccf3
@ -650,7 +650,7 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc
|
||||
m_LastDigBlockZ = a_BlockZ;
|
||||
|
||||
if (
|
||||
(m_Player->GetGameMode() == eGameMode_Creative) || // In creative mode, digging is done immediately
|
||||
(m_Player->IsGameModeCreative()) || // In creative mode, digging is done immediately
|
||||
g_BlockOneHitDig[a_OldBlock] // One-hit blocks get destroyed immediately, too
|
||||
)
|
||||
{
|
||||
|
@ -33,7 +33,7 @@ void cAggressiveMonster::InStateChasing(float a_Dt)
|
||||
if (m_Target->IsPlayer())
|
||||
{
|
||||
cPlayer * Player = (cPlayer *) m_Target;
|
||||
if (Player->GetGameMode() == 1)
|
||||
if (Player->IsGameModeCreative())
|
||||
{
|
||||
m_EMState = IDLE;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user