-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dab6183
commit 74a820e
Showing
11 changed files
with
44 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
versions/24w03a/patches/net/minecraft/network/ConnectionProtocol.java.patch
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
versions/24w03a/patches/net/minecraft/network/codec/StreamCodec.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/network/codec/StreamCodec.java | ||
+++ b/net/minecraft/network/codec/StreamCodec.java | ||
@@ -171,7 +_,7 @@ | ||
} | ||
|
||
default <S extends B> StreamCodec<S, V> cast() { | ||
- return this; | ||
+ return (StreamCodec<S, V>) this; | ||
} | ||
|
||
@FunctionalInterface |
11 changes: 11 additions & 0 deletions
11
...4w03a/patches/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java | ||
+++ b/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java | ||
@@ -36,7 +_,7 @@ | ||
|
||
private <T extends CustomPacketPayload> void writeCap(B friendlyByteBuf, CustomPacketPayload.Type<T> type, CustomPacketPayload customPacketPayload) { | ||
friendlyByteBuf.writeResourceLocation(type.id()); | ||
- StreamCodec<B, T> streamCodec = this.findCodec(type.id); | ||
+ StreamCodec<B, T> streamCodec = (StreamCodec<B, T>) this.findCodec(type.id); | ||
streamCodec.encode(friendlyByteBuf, (T)customPacketPayload); | ||
} | ||
|
8 changes: 4 additions & 4 deletions
8
...inecraft/network/protocol/configuration/ClientboundUpdateEnabledFeaturesPacket.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- a/net/minecraft/network/protocol/configuration/ClientboundUpdateEnabledFeaturesPacket.java | ||
+++ b/net/minecraft/network/protocol/configuration/ClientboundUpdateEnabledFeaturesPacket.java | ||
@@ -8,7 +_,7 @@ | ||
@@ -14,7 +_,7 @@ | ||
); | ||
|
||
public record ClientboundUpdateEnabledFeaturesPacket(Set<ResourceLocation> features) implements Packet<ClientConfigurationPacketListener> { | ||
public ClientboundUpdateEnabledFeaturesPacket(FriendlyByteBuf buffer) { | ||
private ClientboundUpdateEnabledFeaturesPacket(FriendlyByteBuf buffer) { | ||
- this(buffer.readCollection(HashSet::new, FriendlyByteBuf::readResourceLocation)); | ||
+ this(buffer.<ResourceLocation, Set<ResourceLocation>>readCollection(HashSet::new, FriendlyByteBuf::readResourceLocation)); | ||
} | ||
|
||
@Override | ||
private void write(FriendlyByteBuf buffer) { |
11 changes: 11 additions & 0 deletions
11
versions/24w03a/patches/net/minecraft/network/syncher/EntityDataSerializer.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/network/syncher/EntityDataSerializer.java | ||
+++ b/net/minecraft/network/syncher/EntityDataSerializer.java | ||
@@ -13,7 +_,7 @@ | ||
T copy(T value); | ||
|
||
static <T> EntityDataSerializer<T> forValueType(StreamCodec<? super RegistryFriendlyByteBuf, T> streamCodec) { | ||
- return () -> streamCodec; | ||
+ return (ForValueType<T>) () -> streamCodec; | ||
} | ||
|
||
public interface ForValueType<T> extends EntityDataSerializer<T> { |
2 changes: 1 addition & 1 deletion
2
versions/24w03a/patches/net/minecraft/server/MinecraftServer.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
versions/24w03a/patches/net/minecraft/server/level/ServerLevel.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
versions/24w03a/patches/net/minecraft/world/entity/SpawnPlacements.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
versions/24w03a/patches/net/minecraft/world/level/GameRules.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters