mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-21 18:25:12 +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
|
||||
*/
|
||||
public void setProtectionCenter(Location location) throws IOException {
|
||||
if (this.location.equals(location)) {
|
||||
if (this.getProtectionCenter().equals(location)) {
|
||||
return; // nothing to do
|
||||
}
|
||||
if (!this.inIslandSpace(location)) {
|
||||
|
Loading…
Reference in New Issue
Block a user