From 528f14dbf4d3910441c3394de223797bacb48d0c Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 25 Nov 2023 20:16:32 +0000 Subject: [PATCH] Exclude non-grantable tribes from the lan settings screen --- .../minelittlepony/unicopia/client/gui/LanSettingsScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/LanSettingsScreen.java b/src/main/java/com/minelittlepony/unicopia/client/gui/LanSettingsScreen.java index 866ba85f..5d3d0e80 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/LanSettingsScreen.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/LanSettingsScreen.java @@ -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())))