Add customModelData to Velocity SWItem

This commit is contained in:
2025-05-31 08:51:56 +02:00
parent 37f6723542
commit 7b059cde0e
2 changed files with 12 additions and 0 deletions
@@ -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;
}