geforkt von Mirrors/Paper
Fix CraftMetaBanner serialization.
Dieser Commit ist enthalten in:
Ursprung
275603d37a
Commit
351edbf4e5
@ -145,8 +145,13 @@ public class CraftMetaBanner extends CraftMetaItem implements BannerMeta {
|
||||
ImmutableMap.Builder<String, Object> serialize(ImmutableMap.Builder<String, Object> builder) {
|
||||
super.serialize(builder);
|
||||
|
||||
if(base != null){
|
||||
builder.put(BASE.BUKKIT, base);
|
||||
}
|
||||
|
||||
if(!patterns.isEmpty()){
|
||||
builder.put(PATTERNS.BUKKIT, ImmutableList.copyOf(patterns));
|
||||
}
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
@ -96,6 +96,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
|
||||
static {
|
||||
classMap = ImmutableMap.<Class<? extends CraftMetaItem>, String>builder()
|
||||
.put(CraftMetaBanner.class, "BANNER")
|
||||
.put(CraftMetaBook.class, "BOOK")
|
||||
.put(CraftMetaSkull.class, "SKULL")
|
||||
.put(CraftMetaLeatherArmor.class, "LEATHER_ARMOR")
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren