File tree Expand file tree Collapse file tree
src/main/java/me/refracdevelopment/simplegems/menu Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments