Fix unknown entity interaction clicked position getter if null

This commit is contained in:
Nassim Jahnke 2023-08-19 12:01:06 +10:00
parent a925383693
commit 564ba7b184

View file

@ -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