mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 02:35:21 +01:00
Fix NPE when setting the protection center
This commit is contained in:
parent
09c9e9348b
commit
fdbb2480b4
@ -1747,7 +1747,7 @@ public class Island implements DataObject, MetaDataAble {
|
|||||||
* @since 1.16.0
|
* @since 1.16.0
|
||||||
*/
|
*/
|
||||||
public void setProtectionCenter(Location location) throws IOException {
|
public void setProtectionCenter(Location location) throws IOException {
|
||||||
if (this.location.equals(location)) {
|
if (this.getProtectionCenter().equals(location)) {
|
||||||
return; // nothing to do
|
return; // nothing to do
|
||||||
}
|
}
|
||||||
if (!this.inIslandSpace(location)) {
|
if (!this.inIslandSpace(location)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user