Make sure BiomeAPI is initialized with the correct registry

This commit is contained in:
Frank 2022-05-27 18:12:43 +02:00
parent 5d970a27ba
commit 3e41a4630d
8 changed files with 117 additions and 112 deletions

View file

@ -57,13 +57,9 @@ public class CreateWorldScreenMixin {
};
}
//this is called when a new world is first created
@Inject(method = "createNewWorldDirectory", at = @At("RETURN"))
void bcl_createNewWorld(CallbackInfoReturnable<Optional<LevelStorageSource.LevelStorageAccess>> cir) {
Optional<LevelStorageSource.LevelStorageAccess> levelStorageAccess = cir.getReturnValue();
if (levelStorageAccess.isPresent()) {
LifeCycleAPI.startingWorld(levelStorageAccess.get(),
worldGenSettingsComponent.settings().worldGenSettings());
}
LifeCycleAPI.worldCreationStarted(cir.getReturnValue(), this.worldGenSettingsComponent);
}
}