Overworld-End teleport fix
This commit is contained in:
parent
e2ca57ddb3
commit
87c0c153bb
2 changed files with 25 additions and 4 deletions
|
@ -17,7 +17,7 @@ import ru.betterend.world.generator.GeneratorOptions;
|
|||
@Mixin(value = DimensionType.class, priority = 100)
|
||||
public class DimensionTypeMixin {
|
||||
@Inject(method = "createEndGenerator", at = @At("HEAD"), cancellable = true)
|
||||
private static void beReplaceGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed, CallbackInfoReturnable<ChunkGenerator> info) {
|
||||
private static void be_replaceGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed, CallbackInfoReturnable<ChunkGenerator> info) {
|
||||
info.setReturnValue(new NoiseChunkGenerator(new BetterEndBiomeSource(biomeRegistry, seed), seed, () -> {
|
||||
return (ChunkGeneratorSettings) chunkGeneratorSettingsRegistry.getOrThrow(ChunkGeneratorSettings.END);
|
||||
}));
|
||||
|
@ -25,7 +25,7 @@ public class DimensionTypeMixin {
|
|||
}
|
||||
|
||||
@Inject(method = "hasEnderDragonFight", at = @At("HEAD"), cancellable = true)
|
||||
private void beHasEnderDragonFight(CallbackInfoReturnable<Boolean> info) {
|
||||
private void be_hasEnderDragonFight(CallbackInfoReturnable<Boolean> info) {
|
||||
if (!GeneratorOptions.hasDragonFights()) {
|
||||
info.setReturnValue(false);
|
||||
info.cancel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue