Adapted ServerLevelMixin

This commit is contained in:
Frank 2023-05-17 15:16:57 +02:00
parent 022d038bbc
commit 5574867fa1

View file

@ -11,6 +11,7 @@ import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.progress.ChunkProgressListener;
import net.minecraft.util.profiling.ProfilerFiller;
import net.minecraft.world.RandomSequences;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.dimension.DimensionType;
import net.minecraft.world.level.dimension.LevelStem;
@ -49,7 +50,7 @@ public abstract class ServerLevelMixin extends Level {
@Inject(method = "<init>*", at = @At("TAIL"))
private void bclib_onServerWorldInit(
MinecraftServer server,
MinecraftServer minecraftServer,
Executor executor,
LevelStorageAccess levelStorageAccess,
ServerLevelData serverLevelData,
@ -60,12 +61,13 @@ public abstract class ServerLevelMixin extends Level {
long l,
List list,
boolean bl2,
RandomSequences randomSequences,
CallbackInfo ci
) {
ServerLevel level = ServerLevel.class.cast(this);
LifeCycleAPI._runLevelLoad(
level,
server,
minecraftServer,
executor,
levelStorageAccess,
serverLevelData,