Skip to content

Commit fd4bc59

Browse files
Fix potion entity hover event in 1.21.5->1.21.4 (#995)
1 parent aecd744 commit fd4bc59

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_5to1_21_4/rewriter/ComponentRewriter1_21_5.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ private void updateShowEntityHover(final CompoundTag hoverEventTag) {
234234
contents.put("name", nameTag);
235235
}
236236

237-
if (hoverEventTag.remove("id") instanceof StringTag typeTag) {
238-
contents.put("type", typeTag);
237+
if (hoverEventTag.remove("id") instanceof StringTag idTag) {
238+
idTag.setValue(protocol.getEntityRewriter().mappedEntityIdentifier(idTag.getValue()));
239+
contents.put("type", idTag);
239240
}
240241

241242
final Tag uuidTag = hoverEventTag.remove("uuid");

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
projectVersion=5.3.2
1+
projectVersion=5.3.3-SNAPSHOT
22

33
# Smile emoji
44
mcVersions=1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12, 1.11.2, 1.11.1, 1.11, 1.10.2, 1.10.1, 1.10

0 commit comments

Comments
 (0)