Skip to content

Commit

Permalink
Use 0 as default ID. Seems to be a vanilla bug with accepting non-zer…
Browse files Browse the repository at this point in the history
…o IDs
  • Loading branch information
Dinnerbone committed Nov 6, 2011
1 parent 45cb961 commit 8a6bfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft_query.py
Expand Up @@ -21,7 +21,7 @@ class MinecraftQuery:
version = "Game Version",
)

def __init__(self, host, port, timeout=10, id=0xBEEF, retries=2):
def __init__(self, host, port, timeout=10, id=0, retries=2):
self.addr = (host, port)
self.id = id
self.id_packed = struct.pack('>l', id)
Expand Down

0 comments on commit 8a6bfd8

Please sign in to comment.