We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c68686 commit 15e86f1Copy full SHA for 15e86f1
shared/src/main/java/me/xginko/aef/utils/BundleUtil.java
@@ -23,15 +23,12 @@ public class BundleUtil {
23
@Nullable
24
@Unmodifiable
25
public static List<ItemStack> getBundleContent(@NotNull ItemStack itemStack) {
26
- if (itemStack.getType() != XMaterial.BUNDLE.get()) {
27
- return null;
28
- }
29
-
30
if (DataComponentUtil.COMPONENTS_SUPPORTED) {
31
- return DataComponentUtil.getBundleContent(itemStack);
+ List<ItemStack> content = DataComponentUtil.getBundleContent(itemStack);
+ if (content != null) return content;
32
}
33
34
- if (itemStack.hasItemMeta()) {
+ if (itemStack.getType() == XMaterial.BUNDLE.get() && itemStack.hasItemMeta()) {
35
return ((BundleMeta) itemStack.getItemMeta()).getItems();
36
37
0 commit comments