From dcae7f19daf64dca468b02ca59e04eb17e2ac0a6 Mon Sep 17 00:00:00 2001 From: lbenav8095 Date: Thu, 20 Jun 2024 13:14:32 -0600 Subject: [PATCH] MaterialFiller and BlockMaterialFiller use API methods --- .../bloblib/managers/fillermanager/BlockMaterialFiller.java | 2 +- .../mytheria/bloblib/managers/fillermanager/MaterialFiller.java | 2 +- src/main/resources/plugin.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/us/mytheria/bloblib/managers/fillermanager/BlockMaterialFiller.java b/src/main/java/us/mytheria/bloblib/managers/fillermanager/BlockMaterialFiller.java index d9626f9..49638d7 100644 --- a/src/main/java/us/mytheria/bloblib/managers/fillermanager/BlockMaterialFiller.java +++ b/src/main/java/us/mytheria/bloblib/managers/fillermanager/BlockMaterialFiller.java @@ -24,7 +24,7 @@ public BlockMaterialFiller() { continue; if (!material.isBlock()) continue; - if (new ItemStack(material).getItemMeta() == null) + if (!material.isItem()) continue; materials.add(material); } diff --git a/src/main/java/us/mytheria/bloblib/managers/fillermanager/MaterialFiller.java b/src/main/java/us/mytheria/bloblib/managers/fillermanager/MaterialFiller.java index ca776c7..f8c5c78 100644 --- a/src/main/java/us/mytheria/bloblib/managers/fillermanager/MaterialFiller.java +++ b/src/main/java/us/mytheria/bloblib/managers/fillermanager/MaterialFiller.java @@ -22,7 +22,7 @@ public MaterialFiller() { for (Material material : Material.values()) { if (material.name().contains("LEGACY")) continue; - if (new ItemStack(material).getItemMeta() == null) + if (!material.isItem()) continue; materials.add(material); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 0f52373..3953dea 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -4,7 +4,7 @@ main: us.mytheria.bloblib.BlobLib api-version: 1.17 load: STARTUP loadbefore: [ Vault, WorldGuard, WorldEdit, LibsDisguises, ProtocolLib ] -authors: [ promorrom, j0ach1mmall3, Dean B, FourteenBrush, SmallCode ] +authors: [ promorrom, j0ach1mmall3, Dean B, SmallCode ] commands: bloblib: usage: "/bloblib reload" \ No newline at end of file