Skip to content

Commit

Permalink
Fixed Particle class canonical name
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Dec 23, 2024
1 parent 8e05b90 commit b5081c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public static void spawnEffect(final @NotNull Player player, final @NotNull Part
final @NotNull Class<T> tClass,
final @NotNull Function<T, Class<?>> dataTypeGetter) {
T actual;
if (tClass.getCanonicalName().equals("org.bukkit.Particle.class")) actual = (T) ParticleConverter.convertToBukkit(particle);
if (tClass.getCanonicalName().equals("org.bukkit.Particle")) actual = (T) ParticleConverter.convertToBukkit(particle);
else actual = EnumUtils.valueOf(tClass, particle.getType());
Object option = particle.getOption();
Class<?> dataType = dataTypeGetter.apply(actual);
Expand Down

0 comments on commit b5081c0

Please sign in to comment.