Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
SpigotMC#2921: ClickEvent without value exceptions in window title
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystiflow authored and md-5 committed Aug 22, 2020
1 parent 023f407 commit e93c762
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected void deserialize(JsonObject object, BaseComponent component, JsonDeser
JsonObject event = object.getAsJsonObject( "clickEvent" );
component.setClickEvent( new ClickEvent(
ClickEvent.Action.valueOf( event.get( "action" ).getAsString().toUpperCase( Locale.ROOT ) ),
event.get( "value" ).getAsString() ) );
( event.has( "value" ) ) ? event.get( "value" ).getAsString() : "" ) );
}
if ( object.has( "hoverEvent" ) )
{
Expand Down

0 comments on commit e93c762

Please sign in to comment.