From c9aa6816df7d5184ca549bda68b1ad81db2175c3 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Wed, 9 Oct 2019 23:01:51 -0400 Subject: [PATCH] Limit shouldn't ever be null. --- .../main/java/com/boydti/fawe/util/EditSessionBuilder.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java b/worldedit-core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java index b182d3939..683213253 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java @@ -29,6 +29,7 @@ import com.sk89q.worldedit.world.World; import java.util.UUID; import javax.annotation.Nonnull; import javax.annotation.Nullable; +import org.jetbrains.annotations.NotNull; public class EditSessionBuilder { private World world; @@ -446,7 +447,11 @@ public class EditSessionBuilder { return bypassAll; } + @NotNull public FaweLimit getLimit() { + if (limit == null) { + return FaweLimit.MAX; + } return limit; }