Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ableytner committed Mar 13, 2024
1 parent f42cf99 commit b3e636d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mcserverwrapper/src/server/server_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def _check_jar_vanilla(jar_file: str) -> McVersion | None:
if zip_fileinfo.filename == "net/minecraft/server/MinecraftServer.class":
mcs_class = zf.read(zip_fileinfo)
if mcs_class is not None:
vers = [x.group() for x in re.finditer(r"1\.[1-2]{0,1}[0-9](\.[0-9]{1,2})?", mcs_class.decode("utf8", errors="ignore"))]
vers = [x.group() for x in re.finditer(r"1\.[1-2]{0,1}[0-9](\.[0-9]{1,2})?",
mcs_class.decode("utf8", errors="ignore"))]
if len(vers) != 0:
return McVersion(vers[0], McVersionType.VANILLA)

Expand Down

0 comments on commit b3e636d

Please sign in to comment.