#2921: ClickEvent without value exceptions in window title

This commit is contained in:
Mystiflow 2020-08-22 17:50:54 +10:00 committed by md_5
parent 023f407b0d
commit e93c762f16
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -65,7 +65,7 @@ public class BaseComponentSerializer
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" ) )
{