Skip to content

Commit

Permalink
MaterialFiller and BlockMaterialFiller use API methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoismysign committed Jun 20, 2024
1 parent 5d18b1e commit dcae7f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public BlockMaterialFiller() {
continue;
if (!material.isBlock())
continue;
if (new ItemStack(material).getItemMeta() == null)
if (!material.isItem())
continue;
materials.add(material);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit dcae7f1

Please sign in to comment.