mirror of https://github.com/Minestom/Minestom.git
Add InternalConfig to prevent infinite permits list
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
b1ec51973f
commit
74dd0884f1
|
@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
public sealed interface Config permits Configs.V0 {
|
||||
public sealed interface Config permits Configs.InternalConfig {
|
||||
|
||||
static @NotNull Builder builder() {
|
||||
return new BuilderImpl();
|
||||
|
|
|
@ -5,6 +5,10 @@ import net.minestom.server.utils.GsonRecordTypeAdapterFactory;
|
|||
|
||||
final class Configs {
|
||||
@JsonAdapter(GsonRecordTypeAdapterFactory.class)
|
||||
record V0(int version, int compressionThreshold) implements Config.Meta, Config {
|
||||
record V0(int version, int compressionThreshold) implements InternalConfig {
|
||||
}
|
||||
|
||||
|
||||
non-sealed interface InternalConfig extends Config, Config.Meta {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue