Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 19:10:09 +01:00
Fix CME from raids
Use the iterator to remove elements
Dieser Commit ist enthalten in:
Ursprung
6048122e23
Commit
dc841f3379
23
Spigot-Server-Patches/0407-Fix-CME-from-raids.patch
Normale Datei
23
Spigot-Server-Patches/0407-Fix-CME-from-raids.patch
Normale Datei
@ -0,0 +1,23 @@
|
||||
From c846b7f9757ee1c83c7b4aa80c3b1a1458566e67 Mon Sep 17 00:00:00 2001
|
||||
From: Shane Freeder <theboyetronic@gmail.com>
|
||||
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
|
||||
@@ -144,7 +144,7 @@ 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);
|
||||
}
|
||||
}
|
||||
--
|
||||
2.22.0
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren