Files
ParchmentMC/patches/server/0020-Disable-set-respawn-message.patch
2023-03-19 18:01:04 -04:00

26 lines
1.3 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Blast-MC <cjblanton2@gmail.com>
Date: Thu, 25 Aug 2022 20:09:40 -0400
Subject: [PATCH] Disable set respawn message
diff --git a/src/main/java/net/minecraft/server/level/ServerPlayer.java b/src/main/java/net/minecraft/server/level/ServerPlayer.java
index a793532ae1786d9c8fc04d21f49c69b336fd8cfb..ffe4234cf6dac5b3055a31f2a133e943451b307a 100644
--- a/src/main/java/net/minecraft/server/level/ServerPlayer.java
+++ b/src/main/java/net/minecraft/server/level/ServerPlayer.java
@@ -2209,10 +2209,10 @@ public class ServerPlayer extends Player {
angle = (float) event.getLocation().getYaw();
forced = event.isForced();
// Paper end
-
- if (event.willNotifyPlayer() && event.getNotification() != null) { // Paper
- this.sendSystemMessage(PaperAdventure.asVanilla(event.getNotification())); // Paper
- }
+ // Parchment
+// if (event.willNotifyPlayer() && event.getNotification() != null) { // Paper
+// this.sendSystemMessage(PaperAdventure.asVanilla(event.getNotification())); // Paper
+// }
this.respawnPosition = pos;
this.respawnDimension = dimension;