Different mixin for BiomeModification call

This commit is contained in:
Frank 2021-12-03 03:03:10 +01:00
parent f5ee249bbb
commit 7b64221b55
4 changed files with 63 additions and 13 deletions

View file

@ -38,8 +38,9 @@ public abstract class ServerLevelMixin extends Level {
ServerLevel world = ServerLevel.class.cast(this);
LifeCycleAPI._runLevelLoad(world, server, executor, levelStorageAccess, serverLevelData, resourceKey, dimensionType, chunkProgressListener, chunkGenerator, bl, l, list, bl2);
BiomeAPI.initRegistry(server);
BiomeAPI.applyModifications(ServerLevel.class.cast(this));
//called from RegistryReadOpsMixin for now
// BiomeAPI.initRegistry(server);
// BiomeAPI.applyModifications(ServerLevel.class.cast(this));
if (bclib_lastWorld != null && bclib_lastWorld.equals(levelStorageAccess.getLevelId())) {
return;