diff --git a/paper-api/src/main/java/org/bukkit/ItemStack.java b/paper-api/src/main/java/org/bukkit/ItemStack.java index 108c530d13..65f4e54082 100644 --- a/paper-api/src/main/java/org/bukkit/ItemStack.java +++ b/paper-api/src/main/java/org/bukkit/ItemStack.java @@ -93,7 +93,7 @@ public class ItemStack { public void setTypeID(int type) { this.type = type; - Material mat = getType(); + Material mat = Material.getMaterial(type); if (mat == null) { data = new MaterialData(type, (byte)0);