Couple fixes for command blocks (#8004)

This commit is contained in:
Jake Potrebic
2022-06-16 15:03:02 -07:00
parent 86832e42a4
commit 92e54e030d
2 changed files with 39 additions and 0 deletions

View File

@@ -2251,6 +2251,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper start
+ @Override
+ public void sendMessage(net.kyori.adventure.identity.Identity identity, net.kyori.adventure.text.Component message, net.kyori.adventure.audience.MessageType type) {
+ block.source.sendSystemMessage(io.papermc.paper.adventure.PaperAdventure.asVanilla(message));
+ }
+
+ @Override
+ public net.kyori.adventure.text.Component name() {
+ return io.papermc.paper.adventure.PaperAdventure.asAdventure(this.block.getDisplayName());
+ }