Remove Generic from ProjectileImpactEvent (#7959)

Generification of this event was half-done and has been aborted, leaving the generic parameter in place just creates confusion and crashes
This commit is contained in:
DaemonUmbra authored and GitHub committed 2021-07-29 19:10:35 -07:00
1 parent 80d08dbf3a
commit 30cfd848d8
3 files changed
+8 -8

No files matched your search

@@ -43,9 +43,9 @@ public class FishingBobberEventTest
}
}
public static void handleImpact(ProjectileImpactEvent<FishingHook> event)
public static void handleImpact(ProjectileImpactEvent event)
{
FishingHook fishingHook = event.getProjectile();
if(!(event.getProjectile() instanceof FishingHook fishingHook)) return;
HitResult trace = event.getRayTraceResult();
if (trace.getType() == HitResult.Type.ENTITY)
{