From 1e91b21537c9dc06750b12b3f9146b2f7a60d6b9 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sat, 21 Jul 2018 14:18:31 -0700 Subject: [PATCH] Remap WDL plugin channels --- .../packets/InventoryPackets.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/packets/InventoryPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/packets/InventoryPackets.java index 5e2257352..43b4e047a 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/packets/InventoryPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/packets/InventoryPackets.java @@ -575,6 +575,12 @@ public class InventoryPackets { return "minecraft:unregister"; case "BungeeCord": return "bungeecord:main"; + case "WDL|INIT": + return "wdl:init"; + case "WDL|CONTROL": + return "wdl:init"; + case "WDL|REQUEST": + return "wdl:request"; default: return old.matches("[0-9a-z_-]+:[0-9a-z_/.-]+") // Identifier regex ? old @@ -593,6 +599,12 @@ public class InventoryPackets { return "MC|Brand"; case "bungeecord:main": return "BungeeCord"; + case "wdl:init": + return "WDL|INIT"; + case "wdl:control": + return "WDL|CONTROL"; + case "wdl:request": + return "WDL|REQUEST"; default: return newId.startsWith("viaversion:legacy/") ? new String(BaseEncoding.base32().lowerCase().withPadChar('-').decode(