mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Exclude non-grantable tribes from the lan settings screen
This commit is contained in:
parent
cb94d3c841
commit
528f14dbf4
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ public class LanSettingsScreen extends GameGui {
|
||||||
WHITELIST_GRID_PACKER.start();
|
WHITELIST_GRID_PACKER.start();
|
||||||
|
|
||||||
for (Race race : Race.REGISTRY) {
|
for (Race race : Race.REGISTRY) {
|
||||||
if (!race.isUnset()) {
|
if (!race.isUnset() && race.availability().isGrantable()) {
|
||||||
Bounds bound = WHITELIST_GRID_PACKER.next();
|
Bounds bound = WHITELIST_GRID_PACKER.next();
|
||||||
|
|
||||||
Button button = content.addButton(new Toggle(LEFT + bound.left + 10, row + bound.top, whitelist.contains(race.getId().toString())))
|
Button button = content.addButton(new Toggle(LEFT + bound.left + 10, row + bound.top, whitelist.contains(race.getId().toString())))
|
||||||
|
|
Loading…
Reference in a new issue