aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2022-02-03 19:01:01 +0000
committerLuck <git@lucko.me>2022-02-03 19:01:01 +0000
commitc5494d20ce8c3c8868f0fc8e19a03d7888c6fe78 (patch)
tree5728802f5ea219be8437488ec3a69d928c465738 /spark-common/src/main
parentce56c23132383bd5d865070f23dcb89e574b97cd (diff)
downloadspark-c5494d20ce8c3c8868f0fc8e19a03d7888c6fe78.tar.gz
spark-c5494d20ce8c3c8868f0fc8e19a03d7888c6fe78.tar.bz2
spark-c5494d20ce8c3c8868f0fc8e19a03d7888c6fe78.zip
Fix hidden config paths containing a '.' (#169)
Diffstat (limited to 'spark-common/src/main')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/platform/serverconfig/AbstractServerConfigProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/platform/serverconfig/AbstractServerConfigProvider.java b/spark-common/src/main/java/me/lucko/spark/common/platform/serverconfig/AbstractServerConfigProvider.java
index b40f07f..d9e8bf4 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/platform/serverconfig/AbstractServerConfigProvider.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/platform/serverconfig/AbstractServerConfigProvider.java
@@ -99,7 +99,7 @@ public abstract class AbstractServerConfigProvider<T extends Enum<T>> implements
}
JsonObject jsonObject = json.getAsJsonObject();
- String member = path.removeFirst().replace("\\.", ".");
+ String member = path.removeFirst().replace("<dot>", ".");
if (!jsonObject.has(member)) {
return;