Commit 2360ada
committed
Fix text components in signs not being rewritten in the 1.21.7→1.21.5 step
This was causing connection crashes for versions ≤1.21.4, since the
1.21.5.→1.21.4 step rewrites all text components as strings, and thus
parses the NBT.
Since custom click events (and dialogs) were not being filtered on
signs in the 1.21.6→1.21.5 step (despite being correctly handled
everywhere else since ViaVersion#1108), the latter step was failing to properly
read the NBT structure and thus crashing the player's connection.
The fix was done by lifting the sign logic in
`BlockItemPacketRewriter1_21_5` and adapting it into
`BlockItemPacketRewriter1_21_6`. All filtering is still delegated to the
appropriate `ComponentRewriter`, so required code change was rather
small.
This commit is almost identical to my other fix related to sprites in
the 1.21.9→1.21.7 step. See commit d273b06 (e3a4761) and PR ViaVersion#1147.
Fixes ViaVersion#11721 parent ab20f50 commit 2360ada
File tree
1 file changed
+30
-2
lines changed- common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_6to1_21_5/rewriter
1 file changed
+30
-2
lines changedLines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
56 | | - | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
152 | 180 | | |
0 commit comments