Fix offline worlds showing population of 65535

The service has been updated to return -1 when worlds are offline, and then the UI updated to display OFF when the count is less than 0
This commit is contained in:
Adam
2020-11-09 12:41:50 -05:00
parent b031d4c60f
commit 4f3d57d739
2 changed files with 8 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ public class WorldsService
.address(readString(buf))
.activity(readString(buf))
.location(buf.get() & 0xFF)
.players(buf.getShort() & 0xFFFF);
.players(buf.getShort());
worlds.add(worldBuilder.build());
}