Skip to content

Commit bd494b5

Browse files
committed
bump adventure to 4.26.1
1 parent 90af145 commit bd494b5

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
<dependency>
245245
<groupId>net.kyori</groupId>
246246
<artifactId>adventure-text-minimessage</artifactId>
247-
<version>4.25.0</version>
247+
<version>4.26.1</version>
248248
</dependency>
249249
<dependency>
250250
<groupId>net.kyori</groupId>

src/main/java/me/refracdevelopment/simplegems/menu/GemShop.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public GemShop() {
2121
}
2222

2323
public void setupCustomMenuData() {
24-
getCategories().clear();
24+
categories.clear();
2525

2626
List<GemShopItem> items = new ArrayList<>();
2727

@@ -31,16 +31,14 @@ public void setupCustomMenuData() {
3131
ConfigurationSection category = section.getConfigurationSection(gemShopCategory + ".items");
3232

3333
if (category != null) {
34-
category.getKeys(false).forEach(item -> {
35-
items.add(new GemShopItem(gemShopCategory, item));
36-
});
34+
category.getKeys(false).forEach(item -> items.add(new GemShopItem(gemShopCategory, item)));
3735

38-
getCategories().put(gemShopCategory, items);
36+
categories.put(gemShopCategory, items);
3937
}
4038
});
4139
}
4240

4341
public List<GemShopItem> getItems(String categoryName) {
44-
return getCategories().get(categoryName);
42+
return categories.get(categoryName);
4543
}
4644
}

0 commit comments

Comments
 (0)