Fix command not being set

This commit is contained in:
Marcel Konrad
2021-09-27 16:27:41 +02:00
parent 36dadd84a2
commit b954af9159

View File

@@ -37,11 +37,11 @@ public class SignText implements INBTWritable
{
if(command != null && !command.isEmpty())
{
this.text.getStyle().withClickEvent(new ClickEvent(Action.RUN_COMMAND, command));
this.text.setStyle(this.text.getStyle().withClickEvent(new ClickEvent(Action.RUN_COMMAND, command)));
}
else
{
this.text.getStyle().withClickEvent(null);
this.text.setStyle(this.text.getStyle().withClickEvent(null));
}
}