Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
SPIGOT-443: Synchronize access to HANDLED_TAGS as Spigot uses it async
Dieser Commit ist enthalten in:
Ursprung
59dd2ddb9d
Commit
17962f66ec
@ -691,6 +691,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Set<String> getHandledTags() {
|
public static Set<String> getHandledTags() {
|
||||||
|
synchronized (HANDLED_TAGS) {
|
||||||
if (HANDLED_TAGS.isEmpty()) {
|
if (HANDLED_TAGS.isEmpty()) {
|
||||||
HANDLED_TAGS.addAll(Arrays.asList(
|
HANDLED_TAGS.addAll(Arrays.asList(
|
||||||
DISPLAY.NBT,
|
DISPLAY.NBT,
|
||||||
@ -714,3 +715,4 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
|||||||
return HANDLED_TAGS;
|
return HANDLED_TAGS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren