File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/de/flo56958/minetinker/modifiers/types Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1010import org .bukkit .Material ;
1111import org .bukkit .configuration .file .FileConfiguration ;
1212import org .bukkit .enchantments .Enchantment ;
13- import org .bukkit .entity .AbstractArrow ;
14- import org .bukkit .entity .Arrow ;
15- import org .bukkit .entity .Player ;
16- import org .bukkit .entity .Projectile ;
13+ import org .bukkit .entity .*;
1714import org .bukkit .event .EventHandler ;
1815import org .bukkit .event .EventPriority ;
1916import org .bukkit .event .Listener ;
@@ -106,6 +103,7 @@ public void onShoot(final MTProjectileLaunchEvent event) {
106103 Projectile projectile = event .getEvent ().getEntity ();
107104 if (!(projectile instanceof Arrow arrow )) return ;
108105 if (arrow .hasCustomEffects () && !this .worksOnCustomArrows ) return ;
106+ if (arrow instanceof SpectralArrow && !this .worksOnCustomArrows ) return ;
109107 if (arrow .getPickupStatus () == AbstractArrow .PickupStatus .CREATIVE_ONLY ) return ;
110108
111109 final Player player = event .getPlayer ();
You can’t perform that action at this time.
0 commit comments