mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 02:47:44 +01:00
Minor bug fixes
This commit is contained in:
parent
c571bbe590
commit
fb445e5337
@ -27,6 +27,7 @@ public class CraftMetaBanner extends CraftMetaItem implements BannerMeta {
|
||||
|
||||
CraftMetaBanner(CraftMetaItem meta) {
|
||||
super(meta);
|
||||
blockEntityTag = null;
|
||||
|
||||
if (!(meta instanceof CraftMetaBanner)) {
|
||||
return;
|
||||
@ -39,6 +40,7 @@ public class CraftMetaBanner extends CraftMetaItem implements BannerMeta {
|
||||
|
||||
CraftMetaBanner(NBTTagCompound tag) {
|
||||
super(tag);
|
||||
blockEntityTag = null;
|
||||
|
||||
if (!tag.hasKey("BlockEntityTag")) {
|
||||
return;
|
||||
@ -59,6 +61,7 @@ public class CraftMetaBanner extends CraftMetaItem implements BannerMeta {
|
||||
|
||||
CraftMetaBanner(Map<String, Object> map) {
|
||||
super(map);
|
||||
blockEntityTag = null;
|
||||
|
||||
String baseStr = SerializableMeta.getString(map, BASE.BUKKIT, true);
|
||||
if (baseStr != null) {
|
||||
|
@ -204,7 +204,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
private Map<Enchantment, Integer> enchantments;
|
||||
private int repairCost;
|
||||
private final NBTTagList attributes;
|
||||
private final NBTTagCompound blockEntityTag;
|
||||
protected NBTTagCompound blockEntityTag;
|
||||
|
||||
CraftMetaItem(CraftMetaItem meta) {
|
||||
if (meta == null) {
|
||||
@ -556,7 +556,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
&& (this.hasLore() ? that.hasLore() && this.lore.equals(that.lore) : !that.hasLore())
|
||||
&& (this.hasAttributes() ? that.hasAttributes() && this.attributes.equals(that.attributes) : !that.hasAttributes())
|
||||
&& (this.hasRepairCost() ? that.hasRepairCost() && this.repairCost == that.repairCost : !that.hasRepairCost())
|
||||
&& (this.blockEntityTag != null ? that.blockEntityTag != null && this.blockEntityTag.equals(this.blockEntityTag) : that.blockEntityTag == null);
|
||||
&& (this.blockEntityTag != null ? that.blockEntityTag != null && this.blockEntityTag.equals(that.blockEntityTag) : that.blockEntityTag == null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user