mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 11:39:07 +00:00
Activate decree
This commit is contained in:
@@ -61,6 +61,17 @@ public class AtomicCache<T> {
|
||||
});
|
||||
}
|
||||
|
||||
public T aquireNastyPrint(NastySupplier<T> t) {
|
||||
return aquire(() -> {
|
||||
try {
|
||||
return t.get();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public T aquire(Supplier<T> t) {
|
||||
if (this.t.get() != null) {
|
||||
return this.t.get();
|
||||
|
||||
Reference in New Issue
Block a user