diff --git a/Difficult_Rocket/crash/__init__.py b/Difficult_Rocket/crash/__init__.py index 034c9cd..11746f0 100644 --- a/Difficult_Rocket/crash/__init__.py +++ b/Difficult_Rocket/crash/__init__.py @@ -102,7 +102,7 @@ def write_info_to_cache(cache_stream): from Difficult_Rocket import DR_status from Difficult_Rocket.runtime import DR_runtime cache_stream.write(Run_message) - cache_stream.write(markdown_line_handler(f'DR Version: {Difficult_Rocket.game_version}', level=1)) + cache_stream.write(markdown_line_handler(f'DR Version: {Difficult_Rocket.sdk_version}', level=1)) cache_stream.write(markdown_line_handler(f'DR language: {DR_runtime.language}', level=1)) cache_stream.write(markdown_line_handler(f'Running Dir: {Path(os.curdir).resolve()}', level=1)) cache_stream.write(f"\n{DR_runtime.as_markdown()}") diff --git a/docs/src/change_log/dr_sdk.md b/docs/src/change_log/dr_sdk.md index ffe585c..0c31906 100644 --- a/docs/src/change_log/dr_sdk.md +++ b/docs/src/change_log/dr_sdk.md @@ -4,6 +4,12 @@ - 最新版本号 - DR sdk: 0.8.5.1 +## DR sdk 0.8.5.2 + +### Fix + +- `crash` 引用了已经重命名的 `Difficult_Rocket.game_version` (`Difficult_Rocket.sdk_version`) + ## DR sdk 0.8.5.1 ### API diff --git a/mods/dr_game/sr1_ship.py b/mods/dr_game/sr1_ship.py index 602d8cc..cc75472 100644 --- a/mods/dr_game/sr1_ship.py +++ b/mods/dr_game/sr1_ship.py @@ -41,7 +41,7 @@ if DR_mod_runtime.use_DR_rust: SR1Ship_rs) logger = logging.getLogger('client.dr_game_sr1_ship') -sr_tr = Tr(lang_path=Path('./mods/dr_game/lang')) +sr_tr = Tr(lang_path=Path(__file__).parent / 'lang') def get_sr1_part(part_xml: Element) -> Optional[SR1PartData]: