Fix command not being set
This commit is contained in:
1 parent
36dadd84a2
commit
b954af9159
1 file changed
+2
-2
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user