summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 16:52:51 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 16:52:51 +0100
commit173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93 (patch)
treef22cc0530050584e430ede31481b34bff48b3e2f /src/Entities
parentfixed bad merge (diff)
parentremoved unneccisary cast (diff)
downloadcuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.gz
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.bz2
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.lz
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.xz
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.zst
cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 67d5a47ef..bc92790aa 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -908,8 +908,8 @@ bool cPlayer::IsGameModeSurvival(void) const
bool cPlayer::IsGameModeAdventure(void) const
{
- return (m_GameMode == gmCreative) || // Either the player is explicitly in Adventure
- ((m_GameMode == gmNotSet) && m_World->IsGameModeCreative()); // or they inherit from the world and the world is Adventure
+ return (m_GameMode == gmAdventure) || // Either the player is explicitly in Adventure
+ ((m_GameMode == gmNotSet) && m_World->IsGameModeAdventure()); // or they inherit from the world and the world is Adventure
}