From 2749c38c43f175ac190ec08eb13f88959e84635a Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 1 Mar 2022 00:02:40 +0100 Subject: [PATCH] Fix mc dev fix by removing it --- patches/server/MC-Dev-fixes.patch | 73 ------------------------------- 1 file changed, 73 deletions(-) diff --git a/patches/server/MC-Dev-fixes.patch b/patches/server/MC-Dev-fixes.patch index 34ad3ef8f2..b7f1264691 100644 --- a/patches/server/MC-Dev-fixes.patch +++ b/patches/server/MC-Dev-fixes.patch @@ -217,79 +217,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 })); this.byName = Maps.newHashMap(builder.build()); // CraftBukkit RecipeManager.LOGGER.info("Loaded {} recipes", map1.size()); -diff --git a/src/main/java/net/minecraft/world/level/biome/Biome.java b/src/main/java/net/minecraft/world/level/biome/Biome.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/world/level/biome/Biome.java -+++ b/src/main/java/net/minecraft/world/level/biome/Biome.java -@@ -0,0 +0,0 @@ import net.minecraft.world.level.material.FluidState; - import net.minecraft.world.level.material.Fluids; - - public final class Biome { -- public static final Codec DIRECT_CODEC; -- public static final Codec NETWORK_CODEC; -+ // Paper start - decompile fix: move up verbatim from static block -+ public static final Codec DIRECT_CODEC = RecordCodecBuilder.create((instance) -> { -+ return instance.group(Biome.ClimateSettings.CODEC.forGetter((biome) -> { -+ return biome.climateSettings; -+ }), Biome.BiomeCategory.CODEC.fieldOf("category").forGetter((biome) -> { -+ return biome.biomeCategory; -+ }), BiomeSpecialEffects.CODEC.fieldOf("effects").forGetter((biome) -> { -+ return biome.specialEffects; -+ }), BiomeGenerationSettings.CODEC.forGetter((biome) -> { -+ return biome.generationSettings; -+ }), MobSpawnSettings.CODEC.forGetter((biome) -> { -+ return biome.mobSettings; -+ })).apply(instance, Biome::new); -+ }); -+ public static final Codec NETWORK_CODE = RecordCodecBuilder.create((instance) -> { -+ return instance.group(Biome.ClimateSettings.CODEC.forGetter((biome) -> { -+ return biome.climateSettings; -+ }), Biome.BiomeCategory.CODEC.fieldOf("category").forGetter((biome) -> { -+ return biome.biomeCategory; -+ }), BiomeSpecialEffects.CODEC.fieldOf("effects").forGetter((biome) -> { -+ return biome.specialEffects; -+ })).apply(instance, (weather, category, effects) -> { -+ return new Biome(weather, category, effects, BiomeGenerationSettings.EMPTY, MobSpawnSettings.EMPTY); -+ }); -+ }); -+ // Paper end - public static final Codec> CODEC = RegistryFileCodec.create(Registry.BIOME_REGISTRY, DIRECT_CODEC); - public static final Codec> LIST_CODEC = RegistryCodecs.homogeneousList(Registry.BIOME_REGISTRY, DIRECT_CODEC); - private static final PerlinSimplexNoise TEMPERATURE_NOISE = new PerlinSimplexNoise(new WorldgenRandom(new LegacyRandomSource(1234L)), ImmutableList.of(0)); -@@ -0,0 +0,0 @@ public final class Biome { - return biomeEntry.value().getBiomeCategory(); - } - -- static { -- DIRECT_CODEC = RecordCodecBuilder.create((instance) -> { -- return instance.group(Biome.ClimateSettings.CODEC.forGetter((biome) -> { -- return biome.climateSettings; -- }), Biome.BiomeCategory.CODEC.fieldOf("category").forGetter((biome) -> { -- return biome.biomeCategory; -- }), BiomeSpecialEffects.CODEC.fieldOf("effects").forGetter((biome) -> { -- return biome.specialEffects; -- }), BiomeGenerationSettings.CODEC.forGetter((biome) -> { -- return biome.generationSettings; -- }), MobSpawnSettings.CODEC.forGetter((biome) -> { -- return biome.mobSettings; -- })).apply(instance, Biome::new); -- }); -- NETWORK_CODEC = RecordCodecBuilder.create((instance) -> { -- return instance.group(Biome.ClimateSettings.CODEC.forGetter((biome) -> { -- return biome.climateSettings; -- }), Biome.BiomeCategory.CODEC.fieldOf("category").forGetter((biome) -> { -- return biome.biomeCategory; -- }), BiomeSpecialEffects.CODEC.fieldOf("effects").forGetter((biome) -> { -- return biome.specialEffects; -- })).apply(instance, (weather, category, effects) -> { -- return new Biome(weather, category, effects, BiomeGenerationSettings.EMPTY, MobSpawnSettings.EMPTY); -- }); -- }); -- } -- - public static class BiomeBuilder { - @Nullable - private Biome.Precipitation precipitation; diff --git a/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java b/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/world/level/chunk/PalettedContainer.java