aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java
index 2abe617..b5fb85e 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java
@@ -37,7 +37,7 @@ public class ItemIcon implements Icon {
* @since 3.2.0
*/
public ItemIcon(Item item) {
- this(Objects.requireNonNull(item, "item").getStackForRender());
+ this(Objects.requireNonNull(item, "item").getDefaultStack());
}
@Environment(EnvType.CLIENT)