This commit is contained in:
EtienneDx 2020-05-12 18:02:16 +02:00
parent e7af45f34b
commit 16a581f397

View File

@ -68,6 +68,8 @@ public class TransactionsStore
File file = new File(this.dataFilePath);
if(file.exists())
{
FileConfiguration config = YamlConfiguration.loadConfiguration(file);
try {
RealEstate.instance.addLogEntry(new String(Files.readAllBytes(FileSystems.getDefault().getPath(this.dataFilePath))));
@ -89,18 +91,23 @@ public class TransactionsStore
}
}
if(rent != null)
{
for(String key : rent.getKeys(false))
{
ClaimRent cr = (ClaimRent)rent.get(key);
claimRent.put(key, cr);
}
}
if(lease != null)
{
for(String key : lease.getKeys(false))
{
ClaimLease cl = (ClaimLease)lease.get(key);
claimLease.put(key, cl);
}
}
}
}
public void saveData()
{