Skip to content

Commit

Permalink
Merge pull request #15 from SplotyCode/patch-2
Browse files Browse the repository at this point in the history
Remove unnecessary if
  • Loading branch information
clrxbl authored Jan 25, 2024
2 parents 61869c8 + 1d1d7ed commit 286715e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/blockgametracker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ async def query(self):
pass

self.version = int(status.version.protocol)
if self.edition == MinecraftServerEdition.BEDROCK:
self.playercount = int(status.players.online)
else:
self.playercount = int(status.players.online)
self.playercount = int(status.players.online)

end = timer()
logger.info(f"Queried {self.name} ({self.address}) in {round((end - start), 2)} seconds")
Expand Down

0 comments on commit 286715e

Please sign in to comment.