9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00

Activate decree

This commit is contained in:
cyberpwn
2021-08-28 21:48:15 -04:00
parent 93f2c83c0e
commit faf5bcb32b
78 changed files with 36 additions and 6697 deletions

View File

@@ -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();