From 63a3908b53606468bb4a3b034836f05342310181 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 6 Jun 2023 13:31:12 +0200 Subject: [PATCH] 4.7.0 Release --- build.gradle.kts | 2 +- .../Protocol1_19_4To1_20.java | 9 +++++++++ .../data/mappings-1.20to1.19.4.nbt | Bin 3192 -> 3696 bytes 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index b9c4b2cb..5ec3fdf2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { allprojects { group = "com.viaversion" - version = "4.7.0-1.20-rc1-SNAPSHOT" + version = "4.7.0" description = "Allow older clients to join newer server versions." } diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_4to1_20/Protocol1_19_4To1_20.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_4to1_20/Protocol1_19_4To1_20.java index 8e7f5954..195d20ac 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_4to1_20/Protocol1_19_4To1_20.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_4to1_20/Protocol1_19_4To1_20.java @@ -32,6 +32,7 @@ import com.viaversion.viaversion.protocols.protocol1_19_4to1_19_3.ServerboundPac import com.viaversion.viaversion.protocols.protocol1_20to1_19_4.Protocol1_20To1_19_4; import com.viaversion.viaversion.rewriter.StatisticsRewriter; import com.viaversion.viaversion.rewriter.TagRewriter; +import java.util.Arrays; public final class Protocol1_19_4To1_20 extends BackwardsProtocol { @@ -69,6 +70,14 @@ public final class Protocol1_19_4To1_20 extends BackwardsProtocol { + String[] enabledFeatures = wrapper.read(Type.STRING_ARRAY); + final int length = enabledFeatures.length; + enabledFeatures = Arrays.copyOf(enabledFeatures, length + 1); + enabledFeatures[length] = "minecraft:update_1_20"; + wrapper.write(Type.STRING_ARRAY, enabledFeatures); + }); + registerClientbound(ClientboundPackets1_19_4.COMBAT_END, wrapper -> { wrapper.passthrough(Type.VAR_INT); // Duration wrapper.write(Type.INT, -1); // Killer ID - unused (who knows for how long?) diff --git a/common/src/main/resources/assets/viabackwards/data/mappings-1.20to1.19.4.nbt b/common/src/main/resources/assets/viabackwards/data/mappings-1.20to1.19.4.nbt index 678a8f69a10f6d58b7ad16f93e7f3659c8eb9865..965e792cf4795a5ef10e7d1d82eb0b490b59908c 100644 GIT binary patch delta 970 zcma)3F;5#Y82yqEDR-d)f(RkGQVyl+<_Tz7T6JV^H>8vCnTs3eF4#UICU#c;045}+ zs#X6&)xS`cf&K-=(y9w}?u<%Es$_U)eeZksz4zI_8#msk+hW1fzlv}4>(Xw|1At9{ zxt&oIw+(*@Q1}5*+%Z}Ff_FS-`%J!jr^FcaObr4`WzDq zqf;}k0^=jCYlo@(%>NkeyDfe0mLC}%V$Su2yT4}F86-)Ftifs)Nq=I9JvBV8IJ8b$i3y0T6LCS6#yU6l&O>984O4I^otPH5WqSnQ>eksxG}AVE1Ju<(Ex zU=dcJo-rsnrecr?9-_lUP^rLw%zsGZh||DaY>-PT@N}rrU#rc{>1zFRHrb!5cRGFA egxq<)*>jTzJIg*6k_L9fEZe-B_uJEB0{jJo&p_G$ delta 400 zcmew$^Fw08Cni>T1_lPD$)B0*S@jqgnDr;?Guzb5{|5q)IEY3EK=BpmVjw;P1LHji z%`5?>RY5d10JKRDS)74^Ez_s}va~vxp!{jhdc|`^e28qm))Lgx!qSE3F z2$`9eu2-Cxm%;#)l$tEfCB?+RF!>RuDo~3AmpYI<$R*95RFs;S4HWO^QUHr60?Dsj z@<6hmOM0>cH^_o;?wHB