diff --git a/patches/api/0036-Add-PlayerUseUnknownEntityEvent.patch b/patches/api/0036-Add-PlayerUseUnknownEntityEvent.patch index e7e0ef328c..61dbf320c2 100644 --- a/patches/api/0036-Add-PlayerUseUnknownEntityEvent.patch +++ b/patches/api/0036-Add-PlayerUseUnknownEntityEvent.patch @@ -10,7 +10,7 @@ Co-authored-by: Nassim Jahnke diff --git a/src/main/java/com/destroystokyo/paper/event/player/PlayerUseUnknownEntityEvent.java b/src/main/java/com/destroystokyo/paper/event/player/PlayerUseUnknownEntityEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..16291c34a87fb0c610a8b2fef10a1899693cb3b8 +index 0000000000000000000000000000000000000000..a7228e248e3d8eb2e9f011dfe2c7dd9f3f48000f --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerUseUnknownEntityEvent.java @@ -0,0 +1,82 @@ @@ -82,7 +82,7 @@ index 0000000000000000000000000000000000000000..16291c34a87fb0c610a8b2fef10a1899 + * @see org.bukkit.event.player.PlayerInteractAtEntityEvent + */ + public @Nullable Vector getClickedRelativePosition() { -+ return clickedPosition.clone(); ++ return this.clickedPosition != null ? this.clickedPosition.clone() : null; + } + + @NotNull