Used IsGamemodeCreative() function
This commit is contained in:
parent
ae6cb01e56
commit
508e505ace
@ -984,7 +984,7 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
|
|||||||
m_GameMode = a_GameMode;
|
m_GameMode = a_GameMode;
|
||||||
m_ClientHandle->SendGameMode(a_GameMode);
|
m_ClientHandle->SendGameMode(a_GameMode);
|
||||||
|
|
||||||
if (a_GameMode != gmCreative)
|
if (!IsGameModeCreative())
|
||||||
{
|
{
|
||||||
SetFlying(false);
|
SetFlying(false);
|
||||||
SetCanFly(false);
|
SetCanFly(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user