forked from SteamWar/SteamWar
Add customModelData to Velocity SWItem
This commit is contained in:
@@ -142,6 +142,9 @@ public class SWItem {
|
||||
loreArray.forEach(jsonElement -> lore.add(jsonElement.getAsString()));
|
||||
item.setLore(lore);
|
||||
}
|
||||
|
||||
if (itemJson.has("customModelData"))
|
||||
item.setCustomModelData(itemJson.get("customModelData").getAsInt());
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user