diff --git a/src/main/java/com/gtnewhorizon/gtnhlib/util/data/Lazy.java b/src/main/java/com/gtnewhorizon/gtnhlib/util/data/Lazy.java index 7495f995..e18880f7 100644 --- a/src/main/java/com/gtnewhorizon/gtnhlib/util/data/Lazy.java +++ b/src/main/java/com/gtnewhorizon/gtnhlib/util/data/Lazy.java @@ -40,6 +40,10 @@ public class Lazy implements Supplier { return value; } + public synchronized boolean hasValue() { + return hasValue; + } + /** * Initializes the value. {@link #get()}, but with a more readable method name. */