Skip to content

Commit

Permalink
revert item data change
Browse files Browse the repository at this point in the history
  • Loading branch information
Refrac committed Mar 24, 2024
1 parent a1abfbc commit a519e91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void setMenuItems() {

String name = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getString(categoryName + ".fill.name");
Material material = Methods.getMaterial(SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getString(categoryName + ".fill.material")).parseMaterial();
int durability = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getInt(categoryName + ".fill.durability");
int durability = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getInt(categoryName + ".fill.data");
ItemBuilder item = new ItemBuilder(material);

item.setName(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public GemShopItem(String category, String item) {

private void setupMenuItemData() {
this.material = Methods.getMaterial(SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getString(getCategory() + ".items." + getItem() + ".material"));
this.durability = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getInt(getCategory() + ".items." + getItem() + ".durability");
this.durability = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getInt(getCategory() + ".items." + getItem() + ".data");
this.customModelData = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getInt(getCategory() + ".items." + getItem() + ".customModelData");
this.name = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getString(getCategory() + ".items." + getItem() + ".name");
this.lore = SimpleGems.getInstance().getMenus().GEM_SHOP_CATEGORIES.getStringList(getCategory() + ".items." + getItem() + ".lore");
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/menus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ categories:
fill:
enabled: true
material: BLACK_STAINED_GLASS_PANE
durability: 0
data: 0
name: "&7"
items:
infoandbalanceItem:
material: SUNFLOWER
durability: 0
data: 0
skulls: false
headDatabase: false
skullOwner: ""
Expand All @@ -71,7 +71,7 @@ categories:
skullOwner: ""
customData: false
customModelData: YOURIDHERE
durability: 0
data: 0
glow: false
name: "&dMagic Stick"
lore:
Expand Down

0 comments on commit a519e91

Please sign in to comment.