First (untested) version of File-Chunker
This commit is contained in:
parent
5e4f4d5b43
commit
63830a27d6
5 changed files with 194 additions and 10 deletions
|
@ -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);
|
||||
})) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue