Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Feb 19, 2021
1 parent ecda9f8 commit dc3fc30
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public static void markDimensionNonPersistent(Identifier dimensionId) {
nonPersistentDimensions.add(dimensionId);
}

// This is not API
// When DFU does not recognize a mod dimension (in level.dat) it will throw an error
// then the nether and the end will be swallowed
// it's not IP's issue. but I add the fix code because many people encounter the issue
//https://github.com/TelepathicGrunt/Bumblezone-Fabric/issues/20
// then the nether and the end will be swallowed (https://github.com/TelepathicGrunt/Bumblezone-Fabric/issues/20)
// to fix that, don't store the custom dimensions into level.dat
public static SimpleRegistry<DimensionOptions> getAdditionalDimensionsRemoved(
SimpleRegistry<DimensionOptions> registry
) {
Expand All @@ -70,6 +70,7 @@ public static SimpleRegistry<DimensionOptions> getAdditionalDimensionsRemoved(
);
}

// fix nether and end swallowed by DFU error
private static void addMissingVanillaDimensions(GeneratorOptions generatorOptions, DynamicRegistryManager registryManager) {
SimpleRegistry<DimensionOptions> registry = generatorOptions.getDimensions();
long seed = generatorOptions.getSeed();
Expand Down

0 comments on commit dc3fc30

Please sign in to comment.