Skip to content

Commit 1d73321

Browse files
Fix run_command and custom click events (#1046)
1 parent 30e63eb commit 1d73321

File tree

1 file changed

+2
-2
lines changed
  • common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_6to1_21_5/data

1 file changed

+2
-2
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_6to1_21_5/data/Button.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static Button openUrl(final Tag label, final String url) {
136136
}
137137

138138
final CompoundTag tag = new CompoundTag();
139-
tag.putString("type", "run_command");
139+
tag.putString("action", "run_command");
140140
tag.putString("command", template.instantiate(substitutions));
141141
return tag;
142142
}
@@ -148,7 +148,7 @@ public static Button openUrl(final Tag label, final String url) {
148148
}
149149

150150
final CompoundTag tag = new CompoundTag();
151-
tag.putString("type", "custom");
151+
tag.putString("action", "custom");
152152
tag.putString("id", id);
153153
tag.put("payload", additions);
154154
return tag;

0 commit comments

Comments
 (0)