Make sure BiomeAPI is initialized with the correct registry
This commit is contained in:
parent
5d970a27ba
commit
3e41a4630d
8 changed files with 117 additions and 112 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue