From 75a9ce0e0112ad91071a901ecb4175c754e81311 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 8 Aug 2023 13:00:17 +1000 Subject: [PATCH] Clone location in PlayerFailMoveEvent getters --- patches/api/Add-PlayerFailMoveEvent.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/api/Add-PlayerFailMoveEvent.patch b/patches/api/Add-PlayerFailMoveEvent.patch index 41bcf75af..316e78046 100644 --- a/patches/api/Add-PlayerFailMoveEvent.patch +++ b/patches/api/Add-PlayerFailMoveEvent.patch @@ -56,7 +56,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + */ + @NotNull + public Location getFrom() { -+ return from; ++ return from.clone(); + } + + /** @@ -65,7 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + */ + @NotNull + public Location getTo() { -+ return to; ++ return to.clone(); + } + + /**