diff --git a/Spigot-API-Patches/add-hand-to-BlockMultiPlaceEvent.patch b/Spigot-API-Patches/add-hand-to-BlockMultiPlaceEvent.patch index 12d3a2edb2..1c8154234e 100644 --- a/Spigot-API-Patches/add-hand-to-BlockMultiPlaceEvent.patch +++ b/Spigot-API-Patches/add-hand-to-BlockMultiPlaceEvent.patch @@ -11,7 +11,7 @@ index fe2ec79dd..8460aa4f5 100644 @@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull; public class BlockMultiPlaceEvent extends BlockPlaceEvent { private final List states; - + + @Deprecated // Paper public BlockMultiPlaceEvent(@NotNull List states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) { - super(states.get(0).getBlock(), states.get(0), clicked, itemInHand, thePlayer, canBuild); @@ -25,6 +25,6 @@ index fe2ec79dd..8460aa4f5 100644 this.states = ImmutableList.copyOf(states); + //Paper end } - + /** -- \ No newline at end of file diff --git a/Spigot-Server-Patches/Prevent-teleporting-dead-entities.patch b/Spigot-Server-Patches/Prevent-teleporting-dead-entities.patch new file mode 100644 index 0000000000..bc531bb19c --- /dev/null +++ b/Spigot-Server-Patches/Prevent-teleporting-dead-entities.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Tue, 3 Mar 2020 05:26:40 +0000 +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 +--- 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 { + } + + private void internalTeleport(double d0, double d1, double d2, float f, float f1, Set set) { ++ if (player.dead) { ++ LOGGER.info("Attempt to teleport dead player %s restricted", player.getName()); ++ return; ++ } + // CraftBukkit start + if (Float.isNaN(f)) { + f = 0; +-- \ No newline at end of file