Exclude non-grantable tribes from the lan settings screen

This commit is contained in:
Sollace 2023-11-25 20:16:32 +00:00
parent cb94d3c841
commit 528f14dbf4
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -113,7 +113,7 @@ public class LanSettingsScreen extends GameGui {
WHITELIST_GRID_PACKER.start();
for (Race race : Race.REGISTRY) {
if (!race.isUnset()) {
if (!race.isUnset() && race.availability().isGrantable()) {
Bounds bound = WHITELIST_GRID_PACKER.next();
Button button = content.addButton(new Toggle(LEFT + bound.left + 10, row + bound.top, whitelist.contains(race.getId().toString())))