Skip to content

Commit

Permalink
Fixed getTestLegacyParticles incorrectly removing LegacyParticleTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 20, 2024
1 parent 529aed1 commit 000cc62
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ private static Particle[] getTestLegacyParticles() {
particles.add(new Tuple<>(LegacyParticleType.COMPOSTER_FILL_ATTEMPT, new PrimitiveParticleOption<>(true)));
particles.add(new Tuple<>(LegacyParticleType.BONE_MEAL_USE, new PrimitiveParticleOption<>(1)));
particles.add(new Tuple<>(LegacyParticleType.INSTANT_POTION_BREAK, new ColorParticleOption(Color.AQUA)));
for (LegacyParticleType<?> type : LegacyParticleType.legacyValues())
particles.removeIf(t -> t.getKey().name().equalsIgnoreCase(type.name()));
// Remove effects not belonging to current Minecraft version
particles.removeIf(p -> {
try {
Expand Down

0 comments on commit 000cc62

Please sign in to comment.