1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-03 21:37:28 +01:00

Entity#getOrigin() should return a cloned Location

This commit is contained in:
Byteflux 2016-03-25 09:39:37 -07:00
parent fc3f55ddc8
commit 5532826f02

View file

@ -109,7 +109,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper start
+ @Override
+ public Location getOrigin() {
+ return getHandle().origin;
+ Location origin = getHandle().origin;
+ return origin == null ? null : origin.clone();
+ }
+ // Paper end
}