Skip to content

Commit 8fe5d49

Browse files
Added support for customModelData
1 parent 163ce96 commit 8fe5d49

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/net/mackenziemolloy/shopguiplus/sellgui/command/CommandSellGUI.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ private void setDecorationItems(ConfigurationSection configuration, Gui gui, Set
292292
loreList = MessageUtility.colorList(loreList);
293293
itemMeta.setLore(loreList);
294294
}
295+
296+
int customModelData = section.getInt("item.customModelData");
297+
if(customModelData != 0) {
298+
itemMeta.setCustomModelData(customModelData);
299+
}
295300

296301
item.setItemMeta(itemMeta);
297302
}
@@ -317,6 +322,7 @@ private void setDecorationItems(ConfigurationSection configuration, Gui gui, Set
317322

318323
int slot = section.getInt("slot");
319324
gui.setItem(slot, guiItem);
325+
320326
ignoredSlotSet.add(slot);
321327
}
322328
}

0 commit comments

Comments
 (0)