First (untested) version of File-Chunker

This commit is contained in:
Frank 2021-08-22 15:00:29 +02:00
parent 5e4f4d5b43
commit 63830a27d6
5 changed files with 194 additions and 10 deletions

View file

@ -56,16 +56,10 @@ public abstract class MinecraftMixin {
@Final
private LevelStorageSource levelSource;
@Shadow
public abstract void loadLevel(String string);
private final String BCLIB_RECURSION = "$@BCLIB:";
@Inject(method = "loadLevel", cancellable = true, at = @At("HEAD"))
private void bclib_callFixerOnLoad(String levelID, CallbackInfo ci) {
DataExchangeAPI.prepareServerside();
if (DataFixerAPI.fixData(this.levelSource, levelID, true, (appliedFixes) -> {
this.doLoadLevel(levelID, RegistryAccess.builtin(), Minecraft::loadDataPacks, Minecraft::loadWorldData, false, Minecraft.ExperimentalDialogType.BACKUP);
})) {