Level biome source fix (WIP)
This commit is contained in:
parent
708c4d6fa2
commit
8bea55a8d2
6 changed files with 27 additions and 340 deletions
|
@ -1,7 +1,12 @@
|
|||
package ru.betterend;
|
||||
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.NbtIo;
|
||||
import ru.bclib.api.datafixer.DataFixerAPI;
|
||||
import ru.bclib.api.datafixer.Patch;
|
||||
import ru.bclib.api.datafixer.PatchFunction;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class DataFixer {
|
||||
public static void register() {
|
||||
|
@ -13,7 +18,21 @@ public class DataFixer {
|
|||
private static final class BetterEndPatch extends Patch {
|
||||
protected BetterEndPatch() {
|
||||
super(BetterEnd.MOD_ID, "0.11.0");
|
||||
System.out.println("BE Patch!");
|
||||
}
|
||||
|
||||
/*public PatchFunction<CompoundTag, Boolean> getLevelDatPatcher() {
|
||||
return (root, profile) -> {
|
||||
CompoundTag dimensions = root.getCompound("Data").getCompound("WorldGenSettings").getCompound("dimensions");
|
||||
if (dimensions.contains("minecraft:the_end")) {
|
||||
CompoundTag biomeSource = dimensions.getCompound("minecraft:the_end").getCompound("generator").getCompound("biome_source");
|
||||
if (!biomeSource.getString("type").equals("betterend:better_end_biome_source")) {
|
||||
BetterEnd.LOGGER.info("Applying biome source patch");
|
||||
biomeSource.putString("type", "betterend:better_end_biome_source");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue