mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-26 02:57:59 +01:00
Made Island#getCenter() return a clone of the Location
As suggested in https://github.com/BentoBoxWorld/BentoBox/issues/591#issuecomment-471314358
This commit is contained in:
parent
75bbc13cf5
commit
2935f41173
@ -190,10 +190,11 @@ public class Island implements DataObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the center Location
|
* Returns a clone of the location of the center of this island.
|
||||||
|
* @return clone of the center Location
|
||||||
*/
|
*/
|
||||||
public Location getCenter(){
|
public Location getCenter(){
|
||||||
return center;
|
return center.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user