diff --git a/build.gradle.kts b/build.gradle.kts index bd947ed2a4..15206e8d13 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -56,9 +56,9 @@ repositories { } dependencies { - paramMappings("net.fabricmc:yarn:1.18.2+build.1:mergedv2") + paramMappings("net.fabricmc:yarn:1.18.2+build.2:mergedv2") remapper("net.fabricmc:tiny-remapper:0.8.1:fat") - decompiler("net.minecraftforge:forgeflower:1.5.498.22") + decompiler("net.minecraftforge:forgeflower:1.5.498.29") paperclip("io.papermc:paperclip:3.0.2") } diff --git a/patches/server/MC-Dev-fixes.patch b/patches/server/MC-Dev-fixes.patch index e91450d1d5..b7604ea5f5 100644 --- a/patches/server/MC-Dev-fixes.patch +++ b/patches/server/MC-Dev-fixes.patch @@ -152,36 +152,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 private static final int MIN_PROTOCOL_ID = -1; private static final int MAX_PROTOCOL_ID = 2; -diff --git a/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java b/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java -+++ b/src/main/java/net/minecraft/network/protocol/game/ClientboundLoginPacket.java -@@ -0,0 +0,0 @@ public record ClientboundLoginPacket(int playerId, boolean hardcore, GameType ga - }), buf.readWithCodec(RegistryAccess.NETWORK_CODEC).freeze(), buf.readWithCodec(DimensionType.CODEC), ResourceKey.create(Registry.DIMENSION_REGISTRY, buf.readResourceLocation()), buf.readLong(), buf.readVarInt(), buf.readVarInt(), buf.readVarInt(), buf.readBoolean(), buf.readBoolean(), buf.readBoolean(), buf.readBoolean()); - } - -- public ClientboundLoginPacket(int playerEntityId, boolean bl, GameType previousGameMode, @Nullable GameType gameType, Set> set, RegistryAccess.Frozen frozen, Holder holder, ResourceKey resourceKey, long l, int maxPlayers, int chunkLoadDistance, int i, boolean bl2, boolean bl3, boolean bl4, boolean bl5) { -- this.playerId = playerEntityId; -- this.hardcore = bl; -- this.gameType = previousGameMode; -- this.previousGameType = gameType; -- this.levels = set; -- this.registryHolder = frozen; -- this.dimensionType = holder; -- this.dimension = resourceKey; -- this.seed = l; -- this.maxPlayers = maxPlayers; -- this.chunkRadius = chunkLoadDistance; -- this.simulationDistance = i; -- this.reducedDebugInfo = bl2; -- this.showDeathScreen = bl3; -- this.isDebug = bl4; -- this.isFlat = bl5; -- } -- - @Override - public void write(FriendlyByteBuf buf) { - buf.writeInt(this.playerId); diff --git a/src/main/java/net/minecraft/resources/RegistryLoader.java b/src/main/java/net/minecraft/resources/RegistryLoader.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/resources/RegistryLoader.java @@ -195,17 +165,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return new RegistryLoader.ReadCache(); }); } -@@ -0,0 +0,0 @@ public class RegistryLoader { - } - - public static record Bound(RegistryAccess.Writable access, RegistryLoader loader) { -- public Bound(RegistryAccess.Writable writable, RegistryLoader registryLoader) { -- this.access = writable; -- this.loader = registryLoader; -- } - - public DataResult> overrideRegistryFromResources(ResourceKey> registryRef, Codec codec, DynamicOps ops) { - WritableRegistry writableRegistry = this.access.ownedWritableRegistryOrThrow(registryRef); diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java @@ -297,28 +256,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return instance.group(entryCodec.mapResult(ExtraCodecs.orElsePartial(object)).listOf().fieldOf("palette").forGetter(PalettedContainer.DiscData::paletteEntries), Codec.LONG_STREAM.optionalFieldOf("data").forGetter(PalettedContainer.DiscData::storage)).apply(instance, PalettedContainer.DiscData::new); }).comapFlatMap((serialized) -> { return read(idList, provider, serialized); -@@ -0,0 +0,0 @@ public class PalettedContainer implements PaletteResize { - } - - static record Configuration(Palette.Factory factory, int bits) { -- Configuration(Palette.Factory factory, int i) { -- this.factory = factory; -- this.bits = i; -- } - - public PalettedContainer.Data createData(IdMap idList, PaletteResize listener, int size) { - BitStorage bitStorage = (BitStorage)(this.bits == 0 ? new ZeroBitStorage(size) : new SimpleBitStorage(this.bits, size)); -@@ -0,0 +0,0 @@ public class PalettedContainer implements PaletteResize { - } - - static record DiscData(List paletteEntries, Optional storage) { -- DiscData(List list, Optional optional) { -- this.paletteEntries = list; -- this.storage = optional; -- } - } - - public abstract static class Strategy { diff --git a/src/main/java/net/minecraft/world/level/entity/EntityLookup.java b/src/main/java/net/minecraft/world/level/entity/EntityLookup.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/world/level/entity/EntityLookup.java