fix: assign UniverseWrapper in UniverseSetupScreen.setEnvironment

setEnvironment() received a UniverseWrapper parameter but never assigned it
to the instance field. The screen's UI bindings read from the field, not the
context, so seed/generator/server settings from AdvancedGameSetupScreen were
silently discarded.

Flagged independently by both Copilot and CodeRabbit on PR #5299.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cervator 2026-03-29 00:17:35 -04:00
parent 0d310c8c34
commit 18df6c61e7

View file

@ -383,6 +383,7 @@ private void addNewWorld(WorldGeneratorInfo worldGeneratorInfo) {
* needed for successful game creation.
*/
public void setEnvironment(UniverseWrapper universeWrapper) {
this.universeWrapper = universeWrapper;
prepareContext();
DependencyResolver resolver = new DependencyResolver(moduleManager.getRegistry());