diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java | 2 |
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) |