mirror of
https://github.com/essentials/Essentials.git
synced 2025-01-18 05:48:33 +01:00
Fix for Users file being flagged as updated when it wasn't.
This commit is contained in:
parent
767422c8c8
commit
51bcd3bac4
@ -669,7 +669,7 @@ public class WorldDataHolder {
|
||||
ph.removeGroupsChangedFlag();
|
||||
// Update the LastModified time.
|
||||
ph.groupsFile = groupsFile;
|
||||
ph.setTimeStamps();
|
||||
ph.setTimeStampGroups(groupsFile.lastModified());
|
||||
|
||||
//return ph;
|
||||
}
|
||||
@ -776,7 +776,7 @@ public class WorldDataHolder {
|
||||
ph.removeUsersChangedFlag();
|
||||
// Update the LastModified time.
|
||||
ph.usersFile = usersFile;
|
||||
ph.setTimeStamps();
|
||||
ph.setTimeStampUsers(usersFile.lastModified());
|
||||
|
||||
//return ph;
|
||||
}
|
||||
|
@ -200,8 +200,8 @@ public class WorldsHolder {
|
||||
//Check for newer file as no local changes.
|
||||
if (w.getTimeStampGroups() < w.getGroupsFile().lastModified()) {
|
||||
System.out.print("Newer Groups file found (Loading changes)!");
|
||||
// Backup Users file
|
||||
backupFile(w,false);
|
||||
// Backup Groups file
|
||||
backupFile(w,true);
|
||||
w.reloadGroups();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user