mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 03:05:16 +01:00
Fix missing fields in copy constructor for Island class.
This commit is contained in:
parent
fb2c9c0553
commit
3e068e4283
@ -236,6 +236,7 @@ public class Island implements DataObject, MetaDataAble {
|
||||
this.setChanged();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clones an island object
|
||||
* @param island - island to clone
|
||||
@ -256,10 +257,13 @@ public class Island implements DataObject, MetaDataAble {
|
||||
this.doNotLoad = island.isDoNotLoad();
|
||||
this.flags.putAll(island.getFlags());
|
||||
this.gameMode = island.getGameMode();
|
||||
this.homes = new HashMap<>(island.getHomes());
|
||||
this.history.addAll(island.getHistory());
|
||||
this.levelHandicap = island.getLevelHandicap();
|
||||
this.location = island.getProtectionCenter();
|
||||
this.maxEverProtectionRange = island.getMaxEverProtectionRange();
|
||||
this.maxHomes = island.getMaxHomes();
|
||||
this.maxMembers = new HashMap<>(island.getMaxMembers());
|
||||
this.members.putAll(island.getMembers());
|
||||
island.getMetaData().ifPresent(m -> {
|
||||
this.metaData = new HashMap<>();
|
||||
@ -1516,7 +1520,7 @@ public class Island implements DataObject, MetaDataAble {
|
||||
this.maxHomes = maxHomes;
|
||||
setChanged();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the maxMembers
|
||||
* @since 1.16.0
|
||||
|
Loading…
Reference in New Issue
Block a user