mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Limit shouldn't ever be null.
This commit is contained in:
parent
7d60053aaf
commit
c9aa6816df
@ -29,6 +29,7 @@ import com.sk89q.worldedit.world.World;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class EditSessionBuilder {
|
public class EditSessionBuilder {
|
||||||
private World world;
|
private World world;
|
||||||
@ -446,7 +447,11 @@ public class EditSessionBuilder {
|
|||||||
return bypassAll;
|
return bypassAll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
public FaweLimit getLimit() {
|
public FaweLimit getLimit() {
|
||||||
|
if (limit == null) {
|
||||||
|
return FaweLimit.MAX;
|
||||||
|
}
|
||||||
return limit;
|
return limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user