Small API Change

This commit is contained in:
TheBrokenRail 2025-03-07 16:14:45 -05:00
parent 48373d4a5c
commit a615957d36
2 changed files with 3 additions and 2 deletions

View File

@ -440,7 +440,7 @@ static std::string CommandServer_parse_injection(CommandServer_parse_t original,
return std::to_string(server->minecraft->level->data.seed) + '\n'; return std::to_string(server->minecraft->level->data.seed) + '\n';
} }
command(getGameMode) { command(getGameMode) {
return std::to_string(server->minecraft->isCreativeMode()) + '\n'; return std::to_string(server->minecraft->level->data.game_type) + '\n';
} }
} }

View File

@ -3,4 +3,5 @@ method void setTime(int time) = 0xbab28;
method bool getSpawnMobs() = 0xbabec; method bool getSpawnMobs() = 0xbabec;
property int time = 0x68; property int time = 0x68;
property int seed = 0x58; property int seed = 0x58;
property int game_type = 0x7c;