From 52ca5bb734d4b8821390e950e0bbdc753d15681b Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Mon, 30 Sep 2024 00:45:53 -0400 Subject: [PATCH] Show Seed In Debug Info --- mods/src/f3/f3.cpp | 5 +++++ symbols/src/level/LevelData.def | 1 + 2 files changed, 6 insertions(+) diff --git a/mods/src/f3/f3.cpp b/mods/src/f3/f3.cpp index 44b2b3c184..86b970ca29 100644 --- a/mods/src/f3/f3.cpp +++ b/mods/src/f3/f3.cpp @@ -25,6 +25,11 @@ static std::vector get_debug_info(const Minecraft *minecraft) { info.push_back(std::string("MCPI ") + version_get()); // FPS 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 if (minecraft->player) { info.push_back(""); diff --git a/symbols/src/level/LevelData.def b/symbols/src/level/LevelData.def index d227ef4ba8..30c0b16fc7 100644 --- a/symbols/src/level/LevelData.def +++ b/symbols/src/level/LevelData.def @@ -3,3 +3,4 @@ method void setTime(int time) = 0xbab28; method bool getSpawnMobs() = 0xbabec; property int time = 0x68; +property int seed = 0x58; \ No newline at end of file