Add override for Publics in GameModeConfig.Schematic

This commit is contained in:
2026-10-21 08:22:05 +02:00
parent c238b9bdf2
commit c4b46e4431
3 changed files with 44 additions and 23 deletions
@@ -617,6 +617,15 @@ public final class GameModeConfig<M, W> {
*/
public final List<SchematicType> SubTypes;
/**
* List of publics that should be used. Mainly useful for an Event Mode
* where a subset of the regular publics should be used without duplicating
* those in the Database.
*
* @implSpec {@code []} by default, thus the GameModes publics are used.
*/
public final List<Integer> Publics;
/**
* Shortcut of the schematic type
*
@@ -725,6 +734,7 @@ public final class GameModeConfig<M, W> {
Inset = new InsetConfig(loader.with("Inset"));
Type = null;
SubTypesStrings = loader.getStringList("SubTypes");
Publics = loader.getIntList("Publics");
SubTypes = new ArrayList<>();
Shortcut = loader.getString("Shortcut", "");
Material = loader.getMaterial("Material", "STONE_BUTTON");