mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Optimize Entity capabilities a bit by reordering conditions (#9886)
This commit is contained in:
1 parent
7f2b85d2ff
commit
73e02c6add
13 files changed
+33
-36
No files matched your search
@@ -47,7 +47,7 @@ public class LazyOptional<T> {
|
||||
// non-null and contains non-null value -> resolved
|
||||
// non-null and contains null -> resolved, but supplier returned null (contract violation)
|
||||
private Mutable<T> resolved;
|
||||
private Set<NonNullConsumer<LazyOptional<T>>> listeners = new HashSet<>();
|
||||
private final Set<NonNullConsumer<LazyOptional<T>>> listeners = new HashSet<>();
|
||||
private boolean isValid = true;
|
||||
|
||||
private static final @NotNull LazyOptional<Void> EMPTY = new LazyOptional<>(null);
|
||||
|
||||
Reference in new issue
Block a user