Change CUSTOM_PAYLOAD handler in 1.10->1.11 to soft fail. (#3844)

This commit is contained in:
EnZaXD 2024-05-12 09:34:29 +02:00 committed by Nassim Jahnke
parent bd4df2813d
commit c9dfc739a2
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -45,7 +45,7 @@ public class ItemPacketRewriter1_11 extends ItemRewriter<ClientboundPackets1_9_3
public void register() {
map(Types.STRING); // 0 - Channel
handler(wrapper -> {
handlerSoftFail(wrapper -> {
if (wrapper.get(Types.STRING, 0).equals("MC|TrList")) {
wrapper.passthrough(Types.INT); // Passthrough Window ID