From 84e5b795451d0a535d7c978bf57a0b63bd132473 Mon Sep 17 00:00:00 2001 From: Karashok-Leo <1010177289@qq.com> Date: Sun, 4 Aug 2024 17:09:26 +0800 Subject: [PATCH] Update ItemContent.java --- .../karashokleo/loot_bag/api/common/content/ItemContent.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/karashokleo/loot_bag/api/common/content/ItemContent.java b/src/main/java/karashokleo/loot_bag/api/common/content/ItemContent.java index 8870f2f..04af865 100644 --- a/src/main/java/karashokleo/loot_bag/api/common/content/ItemContent.java +++ b/src/main/java/karashokleo/loot_bag/api/common/content/ItemContent.java @@ -26,6 +26,11 @@ public ItemContent(ItemStack stack, Icon icon) this.stack = stack; } + public ItemContent(ItemStack stack) + { + this(stack, new Icon(stack.getItem())); + } + public ItemStack getStack() { return stack;