From 564ba7b184cc956943005bb57ad7b43aafd644a7 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 19 Aug 2023 12:01:06 +1000 Subject: [PATCH] Fix unknown entity interaction clicked position getter if null --- patches/api/Add-PlayerUseUnknownEntityEvent.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/api/Add-PlayerUseUnknownEntityEvent.patch b/patches/api/Add-PlayerUseUnknownEntityEvent.patch index c1f2d49c72..494ff1c326 100644 --- a/patches/api/Add-PlayerUseUnknownEntityEvent.patch +++ b/patches/api/Add-PlayerUseUnknownEntityEvent.patch @@ -82,7 +82,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * @see org.bukkit.event.player.PlayerInteractAtEntityEvent + */ + public @Nullable Vector getClickedRelativePosition() { -+ return clickedPosition.clone(); ++ return this.clickedPosition != null ? this.clickedPosition.clone() : null; + } + + @NotNull