packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

ClassCastException in SpigotConversionUtil

Open CubBossa opened this issue 1 year ago • 0 comments

Describe the bug

java.lang.ClassCastException: class org.bukkit.craftbukkit.CraftParticle$CraftParticleRegistry cannot be cast to class com.google.common.collect.BiMap (org.bukkit.craftbukkit.CraftParticle$CraftParticleRegistry and com.google.common.collect.BiMap are in unnamed module of loader java.net.URLClassLoader @4b4523f8)                                                                                                                                                                        
  at PathFinder-5.0.0.jar/de.cubbossa.pathfinder.lib.packetevents.impl.util.SpigotReflectionUtil.fromPacketEventsParticle(SpigotReflectionUtil.java:1134) ~[PathFinder-5.0.0.jar:?]
  at PathFinder-5.0.0.jar/de.cubbossa.pathfinder.lib.packetevents.impl.util.SpigotConversionUtil.toBukkitParticle(SpigotConversionUtil.java:166) ~[PathFinder-5.0.0.jar:?]
  at PathFinder-5.0.0.jar/de.cubbossa.pathfinder.editmode.renderer.ParticleEdgeRenderer.lambda$startTask$15(ParticleEdgeRenderer.java:208) ~[PathFinder-5.0.0.jar:?]

Software brand papermc 1.20.6-64, packetevents 2.3.1-SNAPSHOT

Plugins only the one with packetevents shaded

How To Reproduce SpigotConversionUtil.toBukkitParticle(ParticleTypes.DUST)

Expected behavior not the above

CubBossa avatar May 13 '24 08:05 CubBossa