SPIGOT-443: Synchronize access to HANDLED_TAGS as Spigot uses it async

This commit is contained in:
BuildTools 2015-01-18 17:33:13 +00:00
parent 59dd2ddb9d
commit 17962f66ec

View file

@ -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,
@ -714,3 +715,4 @@ class CraftMetaItem implements ItemMeta, Repairable {
return HANDLED_TAGS;
}
}
}