diff --git a/mods/src/api/api.cpp b/mods/src/api/api.cpp index 4833cad7..79a4fcb6 100644 --- a/mods/src/api/api.cpp +++ b/mods/src/api/api.cpp @@ -440,7 +440,7 @@ static std::string CommandServer_parse_injection(CommandServer_parse_t original, return std::to_string(server->minecraft->level->data.seed) + '\n'; } command(getGameMode) { - return std::to_string(server->minecraft->isCreativeMode()) + '\n'; + return std::to_string(server->minecraft->level->data.game_type) + '\n'; } } diff --git a/symbols/src/level/LevelData.def b/symbols/src/level/LevelData.def index 30c0b16f..c70d6315 100644 --- a/symbols/src/level/LevelData.def +++ b/symbols/src/level/LevelData.def @@ -3,4 +3,5 @@ method void setTime(int time) = 0xbab28; method bool getSpawnMobs() = 0xbabec; property int time = 0x68; -property int seed = 0x58; \ No newline at end of file +property int seed = 0x58; +property int game_type = 0x7c; \ No newline at end of file