Skip to content

Commit

Permalink
Merge pull request #976 from KKiiya/develop
Browse files Browse the repository at this point in the history
Fixed tag apply for VersionSupport#setShopUpgradeIdentifier
  • Loading branch information
andrei1058 authored Jun 3, 2024
2 parents c23cbb6 + dc86f60 commit 66a831d
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 66a831d

Please sign in to comment.