Small fixes

This commit is contained in:
crschnick 2023-06-06 18:02:42 +00:00
parent a056cf95a2
commit 772faef0fe
2 changed files with 3 additions and 2 deletions

View file

@ -440,7 +440,7 @@ public abstract class DataStorage {
public void deleteStoreEntry(@NonNull DataStoreEntry store) {
if (!store.getConfiguration().isDeletable()) {
throw new UnsupportedOperationException();
// throw new UnsupportedOperationException();
}
synchronized (this) {

View file

@ -49,7 +49,8 @@ public abstract class StorageElement {
public abstract void refresh(boolean deep) throws Exception;
public void updateLastUsed() {
lastUsed = Instant.now();
this.lastUsed = Instant.now();
this.dirty = true;
this.listeners.forEach(l -> l.onUpdate());
}