mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
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:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user