From 09ff25c885e4164125cccf2f65e2cf3e72f3fad6 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sun, 18 Oct 2020 16:34:40 +0300 Subject: Update dependencies, bump version to 3.2.0 --- src/main/java/io/github/cottonmc/cotton/gui/widget/icon/ItemIcon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit