From 5ec30ef18af8148e97fa3e646de60b63fc1821e7 Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Sat, 20 Jul 2024 09:12:44 +0200 Subject: [PATCH] Expose origin version in RedirectProtocolVersion (#4030) --- .../viaversion/protocol/RedirectProtocolVersion.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/com/viaversion/viaversion/protocol/RedirectProtocolVersion.java b/common/src/main/java/com/viaversion/viaversion/protocol/RedirectProtocolVersion.java index 93d4db165..5a90c924a 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocol/RedirectProtocolVersion.java +++ b/common/src/main/java/com/viaversion/viaversion/protocol/RedirectProtocolVersion.java @@ -52,4 +52,7 @@ public class RedirectProtocolVersion extends ProtocolVersion { }; } + public ProtocolVersion getOrigin() { + return origin; + } }