Skip to content

Commit

Permalink
fix(versions): don't add a default firework that do not have a meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed May 29, 2024
1 parent 6010663 commit 877f1c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
public final class ItemSources {

public static final Predicate<Material> NOT_GOAT_HORN = Predicate.not(material -> material.name().equals("GOAT_HORN"));
public static final Predicate<Material> NOT_FIREWORK = Predicate.not(material -> material.name().equals("FIREWORK_ROCKET"));

public static @NotNull Stream<Material> materials(@NotNull Registry<Material> registry) {
return registry.stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public final class Paper_1_20_5 {
.append(
ItemSources.materials(Registry.MATERIAL)
.filter(ItemSources.NOT_GOAT_HORN)
.filter(ItemSources.NOT_FIREWORK)
.filter(ItemSources.createEnabledItemFilter(Bukkit.getWorlds().getFirst()))
.map(ItemSources::toDefaultItem)
)
Expand Down

0 comments on commit 877f1c1

Please sign in to comment.