From 55897098d6c6029d6b03284d8a4bdef3996f0843 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 26 Jun 2019 01:31:26 +0100 Subject: [PATCH] Fix CME from raids Use the iterator to remove elements --- .../Fix-CME-from-raids.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Spigot-Server-Patches/Fix-CME-from-raids.patch diff --git a/Spigot-Server-Patches/Fix-CME-from-raids.patch b/Spigot-Server-Patches/Fix-CME-from-raids.patch new file mode 100644 index 0000000000..1527171cd6 --- /dev/null +++ b/Spigot-Server-Patches/Fix-CME-from-raids.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Wed, 26 Jun 2019 01:20:55 +0100 +Subject: [PATCH] Fix CME from raids + +Use the iterator to remove elements + +diff --git a/src/main/java/net/minecraft/server/Raid.java b/src/main/java/net/minecraft/server/Raid.java +index 6c1bbefd71..58c33f1000 100644 +--- a/src/main/java/net/minecraft/server/Raid.java ++++ b/src/main/java/net/minecraft/server/Raid.java +@@ -0,0 +0,0 @@ public class Raid { + BlockPosition blockposition = new BlockPosition(entityplayer); + + if (this.k.c_(blockposition) != this) { +- set.remove(entityplayer); ++ iterator.remove(); // Paper - Use iterator + this.r.removePlayer(entityplayer); + } + } +-- \ No newline at end of file