"/" instead of "."
This commit is contained in:
parent
25bc8caeab
commit
81a0f0cbd1
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class SchematicV2Handler {
|
|||
|
||||
public Tag readNbtFromJson(String id) {
|
||||
try {
|
||||
Path path = Paths.get(SchematicV2Handler.class.getResource("/data/dimdoors/pockets/json/" + id.replaceAll("\\.", "/") + ".json").toURI());
|
||||
Path path = Paths.get(SchematicV2Handler.class.getResource("/data/dimdoors/pockets/json/" + id + ".json").toURI());
|
||||
if (!Files.isRegularFile(path)) return null;
|
||||
try {
|
||||
JsonElement json = GSON.fromJson(String.join("", Files.readAllLines(path)), JsonElement.class);
|
||||
|
|
Loading…
Reference in a new issue