Moar 1.19 fixes (#7884)

This commit is contained in:
Noah van der Aa
2022-06-08 15:38:56 +02:00
parent dcb23664a3
commit 88ca48c121
8 changed files with 10 additions and 52 deletions

View File

@@ -21,7 +21,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
+import net.minecraft.commands.CommandSource;
+import net.minecraft.commands.CommandSourceStack;
+import net.minecraft.network.chat.TextComponent;
+import net.minecraft.server.level.ServerLevel;
+import net.minecraft.world.phys.Vec2;
+import net.minecraft.world.phys.Vec3;
@@ -89,7 +88,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ overworld,
+ 4,
+ this.getName(),
+ new TextComponent(this.getName()),
+ net.minecraft.network.chat.Component.literal(this.getName()),
+ this.server.getServer(),
+ null
+ );
@@ -97,8 +96,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ private record Source(FeedbackForwardingSender sender) implements CommandSource {
+ @Override
+ public void sendMessage(final net.minecraft.network.chat.Component message, final UUID sender) {
+ this.sender.sendMessage(Identity.identity(sender), PaperAdventure.asAdventure(message));
+ public void sendSystemMessage(final net.minecraft.network.chat.Component message) {
+ this.sender.sendMessage(Identity.nil(), PaperAdventure.asAdventure(message));
+ }
+
+ @Override