forked from Clones/Controlify
✏️ Make server policies allow by default
This commit is contained in:
@ -8,7 +8,6 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public final class TypeAdapters {
|
public final class TypeAdapters {
|
||||||
public static class ClassTypeAdapter implements JsonSerializer<Class<?>>, JsonDeserializer<Class<?>> {
|
public static class ClassTypeAdapter implements JsonSerializer<Class<?>>, JsonDeserializer<Class<?>> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<?> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public Class<?> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
try {
|
try {
|
||||||
|
@ -10,6 +10,6 @@ public class ControlifyServerConfig {
|
|||||||
.setPath(FabricLoader.getInstance().getConfigDir().resolve("controlify.json"))
|
.setPath(FabricLoader.getInstance().getConfigDir().resolve("controlify.json"))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@ConfigEntry public boolean reachAroundPolicy = false;
|
@ConfigEntry public boolean reachAroundPolicy = true;
|
||||||
@ConfigEntry public boolean noFlyDriftPolicy = false;
|
@ConfigEntry public boolean noFlyDriftPolicy = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user