Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf authored Dec 21, 2024
1 parent b04c452 commit aba8a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mcserver/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def query_java_server(
) -> str:
match_object = re.match(r"(.*)[\s:](\d*)", address, re.M | re.I)
serip = match_object.group(1) if match_object else address
port = int(match_object.group(2)) if match_object else 25565
port = match_object.group(2)if match_object else 25565
servers = []

try:
Expand Down Expand Up @@ -65,7 +65,7 @@ async def query_java_server(
async def query_bedrock_server(msg, address, raw=False):
match_object = re.match(r"(.*)[\s:](\d*)", address, re.M | re.I)
serip = match_object.group(1) if match_object else address
port = int(match_object.group(2)) if match_object else 19132
port = match_object.group(2) if match_object else 19132
servers = []

try:
Expand Down

0 comments on commit aba8a81

Please sign in to comment.