mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-18 11:22:15 +01:00
SPIGOT-443: Synchronize access to HANDLED_TAGS as Spigot uses it async
This commit is contained in:
parent
59dd2ddb9d
commit
17962f66ec
1 changed files with 22 additions and 20 deletions
|
@ -691,6 +691,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
|||
}
|
||||
|
||||
public static Set<String> getHandledTags() {
|
||||
synchronized (HANDLED_TAGS) {
|
||||
if (HANDLED_TAGS.isEmpty()) {
|
||||
HANDLED_TAGS.addAll(Arrays.asList(
|
||||
DISPLAY.NBT,
|
||||
|
@ -713,4 +714,5 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
|||
}
|
||||
return HANDLED_TAGS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue