Skip to content

Commit

Permalink
**2.0**
Browse files Browse the repository at this point in the history
* Fixed visit item icons generating while a shop has no shop item causing errors

Signed-off-by: XZot1K <[email protected]>
  • Loading branch information
XZot1K committed Jan 20, 2024
1 parent a01b7eb commit 5711e39
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
8 changes: 8 additions & 0 deletions Core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@
<pattern>org.intellij</pattern>
<shadedPattern>xzot1k.plugins.ds.org.intellij</shadedPattern>
</relocation>
<relocation>
<pattern>net.wesjd.anvilgui</pattern>
<shadedPattern>xzot1k.plugins.ds.anvilgui</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.code.gson</pattern>
<shadedPattern>xzot1k.plugins.ds.gson</shadedPattern>
</relocation>
</relocations>

<filters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ public void run() {

private ItemStack buildItem(@NotNull Shop shop) {
final LocationClone location = shop.getBaseLocation();
ItemStack itemStack = INSTANCE.updateNBT(new ItemStack(shop.getShopItem().getType(), 1,
shop.getShopItem().getDurability()), "currentShop-id", shop.getShopId().toString());

ItemStack shopItemClone = shop.getShopItem().clone();
shopItemClone.setAmount(1);

ItemStack itemStack = INSTANCE.updateNBT(shopItemClone, "currentShop-id", shop.getShopId().toString());
ItemMeta itemMeta = itemStack.getItemMeta();
if (itemMeta != null) {
itemMeta.addItemFlags(ItemFlag.values());
Expand Down
21 changes: 0 additions & 21 deletions v1_20_r3.iml

This file was deleted.

3 changes: 2 additions & 1 deletion v1_20_r3/v1_20_r3.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
<facet type="minecraft" name="Minecraft">
<configuration>
<autoDetectTypes>
<platformType>MCP</platformType>
<platformType>SPIGOT</platformType>
<platformType>BUNGEECORD</platformType>
<platformType>BUKKIT</platformType>
<platformType>PAPER</platformType>
<platformType>ADVENTURE</platformType>
<platformType>SPIGOT</platformType>
</autoDetectTypes>
<projectReimportVersion>1</projectReimportVersion>
</configuration>
Expand Down

0 comments on commit 5711e39

Please sign in to comment.