mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 02:01:44 +01:00
Fix dead telepotation logger format
This commit is contained in:
parent
7bd0b6ab1a
commit
31872198b4
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
From f884e53d1700a3a0574ddb50a6400e50706d752e Mon Sep 17 00:00:00 2001
|
From f28f3c02c20302c71004e285dcce8b4fb567c512 Mon Sep 17 00:00:00 2001
|
||||||
From: Shane Freeder <theboyetronic@gmail.com>
|
From: Shane Freeder <theboyetronic@gmail.com>
|
||||||
Date: Tue, 3 Mar 2020 05:26:40 +0000
|
Date: Tue, 3 Mar 2020 05:26:40 +0000
|
||||||
Subject: [PATCH] Prevent teleporting dead entities
|
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
|
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
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
@@ -1209,6 +1209,10 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
@@ -1209,6 +1209,10 @@ 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) {
|
private void internalTeleport(double d0, double d1, double d2, float f, float f1, Set<PacketPlayOutPosition.EnumPlayerTeleportFlags> set) {
|
||||||
+ if (player.dead) {
|
+ 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;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
|
Loading…
Reference in a new issue