mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-12 11:21:20 +01:00
Handle null center locations.
Cloning null was causing an NPE.
This commit is contained in:
parent
ea1602b0f5
commit
47900fd183
@ -194,7 +194,7 @@ public class Island implements DataObject {
|
||||
* @return clone of the center Location
|
||||
*/
|
||||
public Location getCenter(){
|
||||
return center.clone();
|
||||
return center == null ? null : center.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user