Fix NoSuchMethodError: 'Class ClickEvent$Action.payloadType()' error for Adventure 4.21 or older
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -443,7 +443,7 @@ final class StyleSerializer extends TypeAdapter<Style> {
|
||||
out.endObject();
|
||||
}
|
||||
|
||||
if (this.emitCamelCaseClick && (BackwardCompatUtil.IS_4_22_0_OR_NEWER || action.payloadType() == ClickEvent.Payload.Text.class)) { // packetevents patch
|
||||
if (this.emitCamelCaseClick && (!BackwardCompatUtil.IS_4_22_0_OR_NEWER || action.payloadType() == ClickEvent.Payload.Text.class)) { // packetevents patch
|
||||
out.name(CLICK_EVENT_CAMEL);
|
||||
out.beginObject();
|
||||
out.name(CLICK_EVENT_ACTION);
|
||||
|
||||
Reference in new issue
Block a user