mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-02-11 03:29:53 +00:00
Fix CastClassException
This commit is contained in:
parent
ae8db5a33a
commit
330b2a843b
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ public class ParticleStyleArrows extends DefaultParticleStyle implements Listene
|
|||
*/
|
||||
@EventHandler
|
||||
public void onProjectileLaunch(ProjectileLaunchEvent event) {
|
||||
if (!(event.getEntity().getShooter() instanceof Player))
|
||||
return;
|
||||
|
||||
String entityName = event.getEntity().getType().name();
|
||||
if (this.arrowEntityNames.contains(entityName))
|
||||
this.arrows.add(event.getEntity());
|
||||
|
|
Loading…
Reference in a new issue