mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Fix dead telepotation logger format
This commit is contained in:
parent
f1cb780357
commit
d2646b299c
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ Subject: [PATCH] Prevent teleporting dead entities
|
|||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index 108377d76..c6bd62392 100644
|
||||
index 108377d76..7929fcc80 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
||||
|
@ -13,7 +13,7 @@ index 108377d76..c6bd62392 100644
|
|||
|
||||
private void internalTeleport(double d0, double d1, double d2, float f, float f1, Set<PacketPlayOutPosition.EnumPlayerTeleportFlags> set) {
|
||||
+ if (player.dead) {
|
||||
+ LOGGER.info("Attempt to teleport dead player %s restricted", player.getName());
|
||||
+ LOGGER.info("Attempt to teleport dead player {} restricted", player.getName());
|
||||
+ return;
|
||||
+ }
|
||||
// CraftBukkit start
|
||||
|
|
Loading…
Reference in a new issue