1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
* Fix stuff with readme in codegen scripts

Emojis broke it

* 1.19.2-rc1

* 1.19.2
This commit is contained in:
mat 2022-08-06 04:58:50 +00:00 committed by GitHub
parent 69f97dbf02
commit 1d48c3fe34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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: