Show Seed In Debug Info

This commit is contained in:
TheBrokenRail 2024-09-30 00:45:53 -04:00
parent 916902ab68
commit 52ca5bb734
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,11 @@ static std::vector<std::string> get_debug_info(const Minecraft *minecraft) {
info.push_back(std::string("MCPI ") + version_get()); info.push_back(std::string("MCPI ") + version_get());
// FPS // FPS
info.push_back("FPS: " + to_string_with_precision(fps, debug_precision)); info.push_back("FPS: " + to_string_with_precision(fps, debug_precision));
// Seed
if (minecraft->level) {
info.push_back("");
info.push_back("Seed: " + std::to_string(minecraft->level->data.seed));
}
// X/Y/Z // X/Y/Z
if (minecraft->player) { if (minecraft->player) {
info.push_back(""); info.push_back("");

View File

@ -3,3 +3,4 @@ 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;