Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 98dd9a7

Browse files
committed
F upgrades null pointer fixed by utilizing MultiversionMaterials.
1 parent a367d73 commit 98dd9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/massivecraft/factions/SavageFactions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ public void postAutoSave() {
496496
}
497497

498498
public ItemStack createItem(Material material, int amount, short datavalue, String name, List<String> lore) {
499-
ItemStack item = new ItemStack(material, amount, datavalue);
499+
ItemStack item = new ItemStack(MultiversionMaterials.fromString(material.toString()).parseMaterial(), amount, datavalue);
500500
ItemMeta meta = item.getItemMeta();
501501
meta.setDisplayName(color(name));
502502
meta.setLore(colorList(lore));

0 commit comments

Comments
 (0)