A ForcedLevelPatch
is always executed against level.dat, (no matter what patchLevel is set for a world)
This commit is contained in:
parent
f648669c95
commit
d04d75222e
5 changed files with 80 additions and 7 deletions
|
@ -1,14 +1,23 @@
|
|||
package ru.bclib;
|
||||
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import ru.bclib.api.datafixer.DataFixerAPI;
|
||||
import ru.bclib.api.datafixer.Patch;
|
||||
import ru.bclib.api.datafixer.PatchFunction;
|
||||
|
||||
public final class BCLibPatch extends Patch {
|
||||
|
||||
|
||||
public final class BCLibPatch {
|
||||
public static void register(){
|
||||
DataFixerAPI.registerPatch(BiomeSourcePatch::new);
|
||||
}
|
||||
}
|
||||
|
||||
final class BiomeSourcePatch extends Patch {
|
||||
private static final String NETHER_BIOME_SOURCE = "bclib:nether_biome_source";
|
||||
private static final String END_BIOME_SOURCE = "bclib:end_biome_source";
|
||||
|
||||
protected BCLibPatch() {
|
||||
protected BiomeSourcePatch() {
|
||||
super(BCLib.MOD_ID, "0.4.0");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue