|
|
|
@ -83,7 +83,17 @@ public class LinkedBeaconTeleporterManager {
|
|
|
|
|
Main.log.info("All done!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static boolean saveData(){
|
|
|
|
|
static int oldDataHashCode;
|
|
|
|
|
public static boolean writeData(){
|
|
|
|
|
// Check if data changed
|
|
|
|
|
int dataHashCode = placedLBTsById.hashCode();
|
|
|
|
|
if(oldDataHashCode != dataHashCode){
|
|
|
|
|
// Changed
|
|
|
|
|
oldDataHashCode = dataHashCode;
|
|
|
|
|
}
|
|
|
|
|
else // Did not change
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
Main.data = new YamlConfiguration();
|
|
|
|
|
for(String teleporterId : placedLBTsById.keySet()){
|
|
|
|
|
List<LinkedBeaconTeleporter> LBTs = placedLBTsById.get(teleporterId);
|
|
|
|
|