mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
1.19.2 (#15)
* Fix stuff with readme in codegen scripts Emojis broke it * 1.19.2-rc1 * 1.19.2
This commit is contained in:
parent
69f97dbf02
commit
1d48c3fe34
2 changed files with 7 additions and 7 deletions
|
@ -7,7 +7,7 @@ A collection of Rust crates primarily for creating Minecraft bots.
|
|||
</p>
|
||||
|
||||
<!-- The line below is automatically read and updated by the migrate script, so don't change it manually. -->
|
||||
*Currently supported Minecraft version: `1.19.1`.*
|
||||
*Currently supported Minecraft version: `1.19.2`.*
|
||||
|
||||
## ⚠️ Azalea is still super unfinished, you probably shouldn't use it
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ VERSION_REGEX = r'\*Currently supported Minecraft version: `(.*)`.\*'
|
|||
|
||||
|
||||
def get_version_id() -> str:
|
||||
with open(README_DIR, 'r') as f:
|
||||
readme_text = f.read()
|
||||
with open(README_DIR, 'rb') as f:
|
||||
readme_text = f.read().decode()
|
||||
|
||||
version_line_match = re.search(VERSION_REGEX, readme_text)
|
||||
if version_line_match:
|
||||
|
@ -19,8 +19,8 @@ def get_version_id() -> str:
|
|||
|
||||
|
||||
def set_version_id(version_id: str) -> None:
|
||||
with open(README_DIR, 'r') as f:
|
||||
readme_text = f.read()
|
||||
with open(README_DIR, 'rb') as f:
|
||||
readme_text = f.read().decode()
|
||||
|
||||
version_line_match = re.search(VERSION_REGEX, readme_text)
|
||||
if version_line_match:
|
||||
|
@ -29,8 +29,8 @@ def set_version_id(version_id: str) -> None:
|
|||
else:
|
||||
raise Exception('Could not find version id in README.md')
|
||||
|
||||
with open(README_DIR, 'w') as f:
|
||||
f.write(readme_text)
|
||||
with open(README_DIR, 'wb') as f:
|
||||
f.write(readme_text.encode())
|
||||
|
||||
|
||||
def get_protocol_version() -> str:
|
||||
|
|
Loading…
Add table
Reference in a new issue