mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-21 16:09:19 +00:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
|
Date: Tue, 21 May 2024 19:07:47 +0800
|
|
Subject: [PATCH] Decompile fix
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java b/src/main/java/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java
|
|
index bc885d2cc95572ec68f1df62555fdba7998b1d93..663b3b12d9a7cdc04b7f86ccfe6bc6fcfd5028bc 100644
|
|
--- a/src/main/java/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java
|
|
+++ b/src/main/java/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java
|
|
@@ -34,7 +34,7 @@ public interface CustomPacketPayload {
|
|
|
|
private <T extends CustomPacketPayload> void writeCap(B value, CustomPacketPayload.Type<T> id, CustomPacketPayload payload) {
|
|
value.writeResourceLocation(id.id());
|
|
- StreamCodec<B, T> streamCodec = this.findCodec(id.id);
|
|
+ StreamCodec<B, T> streamCodec = (StreamCodec<B, T>) this.findCodec(id.id); // Leaf - Decompile fix
|
|
streamCodec.encode(value, (T)payload);
|
|
}
|
|
|