Skip to content

Commit

Permalink
Fixed tag apply for VersionSupport#setShopUpgradeIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
KKiiya committed Feb 5, 2024
1 parent 134a361 commit dc86f60
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,10 @@ public org.bukkit.inventory.ItemStack setShopUpgradeIdentifier(org.bukkit.invent
NBTTagCompound tag = i.getTag();
if (tag == null) {
tag = new NBTTagCompound();
i.setTag(tag);
}
tag.setString("tierIdentifier", identifier);

tag.setString(VersionSupport.PLUGIN_TAG_TIER_KEY, identifier);
i.setTag(tag);
return CraftItemStack.asBukkitCopy(i);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,10 @@ public org.bukkit.inventory.ItemStack setShopUpgradeIdentifier(org.bukkit.invent
NBTTagCompound tag = i.getTag();
if (tag == null) {
tag = new NBTTagCompound();
i.setTag(tag);
}
tag.setString("tierIdentifier", identifier);

tag.setString(VersionSupport.PLUGIN_TAG_TIER_KEY, identifier);
i.setTag(tag);
return CraftItemStack.asBukkitCopy(i);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,10 @@ public org.bukkit.inventory.ItemStack setShopUpgradeIdentifier(org.bukkit.invent
NBTTagCompound tag = i.getTag();
if (tag == null) {
tag = new NBTTagCompound();
i.setTag(tag);
}
tag.setString("tierIdentifier", identifier);

tag.setString(VersionSupport.PLUGIN_TAG_TIER_KEY, identifier);
i.setTag(tag);
return CraftItemStack.asBukkitCopy(i);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,10 @@ public org.bukkit.inventory.ItemStack setShopUpgradeIdentifier(org.bukkit.invent
NBTTagCompound tag = i.getTag();
if (tag == null) {
tag = new NBTTagCompound();
i.setTag(tag);
}
tag.setString("tierIdentifier", identifier);

tag.setString(VersionSupport.PLUGIN_TAG_TIER_KEY, identifier);
i.setTag(tag);
return CraftItemStack.asBukkitCopy(i);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,10 @@ public org.bukkit.inventory.ItemStack setShopUpgradeIdentifier(org.bukkit.invent
NBTTagCompound tag = i.t();
if (tag == null) {
tag = new NBTTagCompound();
i.c(tag);
}
tag.a("tierIdentifier", identifier);

tag.a(VersionSupport.PLUGIN_TAG_TIER_KEY, identifier);
i.c(tag);
return CraftItemStack.asBukkitCopy(i);
}

Expand Down

0 comments on commit dc86f60

Please sign in to comment.