Skip to content

Commit 1f89bab

Browse files
authored
fixed item meta not showing correctly in Search GUI (#59)
* release 2.0.7.2 * fixed item meta not showing correctly in Search GUI * pom updated
1 parent e2301fb commit 1f89bab

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Release 2.0.7.2
2+
### Bug fixes
3+
- Fixed item meta not showing correctly in Search GUI
4+
15
## Release 2.0.7.1
26
### Changes
37
- Added config option to suppress update notifications in chat

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Shop Search AddOn For QuickShop
2-
### Version: 2.0.7.1-RELEASE
2+
### Version: 2.0.7.2-RELEASE
33

44
An unofficial add-on for the QuickShop Hikari and Reremake spigot plugin.
55
Adds a `/finditem` command in game for searching through all the shops on the server.

pom.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.myzticbean.finditemaddon</groupId>
88
<artifactId>QSFindItemAddOn</artifactId>
9-
<version>2.0.7.1-RELEASE</version>
9+
<version>2.0.7.2-RELEASE</version>
1010
<packaging>jar</packaging>
1111

1212
<name>QSFindItemAddOn</name>
@@ -15,6 +15,8 @@
1515
<java.version>17</java.version>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
<spigot.version>1.21-R0.1-SNAPSHOT</spigot.version>
18+
<playerwarps-api-old>6.30.0</playerwarps-api-old>
19+
<playerwarps-api-new>7.7.1</playerwarps-api-new>
1820
</properties>
1921

2022
<build>
@@ -247,7 +249,7 @@
247249
<dependency>
248250
<groupId>com.olziedev</groupId>
249251
<artifactId>playerwarps-api</artifactId>
250-
<version>6.30.0</version>
252+
<version>${playerwarps-api-old}</version>
251253
<scope>provided</scope>
252254
<exclusions>
253255
<exclusion>
@@ -259,7 +261,7 @@
259261
<dependency>
260262
<groupId>com.olziedev</groupId>
261263
<artifactId>playerwarps-api</artifactId>
262-
<version>7.6.1</version>
264+
<version>${playerwarps-api-new}</version>
263265
<scope>provided</scope>
264266
</dependency>
265267
<dependency>

src/main/java/io/myzticbean/finditemaddon/handlers/gui/menus/FoundShopsMenu.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public void setMenuItems(List<FoundShopItemModel> foundShops) {
467467
private @NotNull ItemStack createShopItem(@NotNull FoundShopItemModel foundShop) {
468468
// Create a new ItemStack based on the shop's item
469469
ItemStack item = new ItemStack(foundShop.getItem().getType(), foundShop.getItem().getAmount());
470-
ItemMeta meta = item.getItemMeta();
470+
ItemMeta meta = foundShop.getItem().getItemMeta();
471471
if (meta == null) {
472472
meta = Bukkit.getItemFactory().getItemMeta(item.getType());
473473
}

0 commit comments

Comments
 (0)