Fix command not being set
This commit is contained in:
@@ -37,11 +37,11 @@ public class SignText implements INBTWritable
|
|||||||
{
|
{
|
||||||
if(command != null && !command.isEmpty())
|
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
|
else
|
||||||
{
|
{
|
||||||
this.text.getStyle().withClickEvent(null);
|
this.text.setStyle(this.text.getStyle().withClickEvent(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user