Skip to content

Commit

Permalink
Use identifier path composition methods
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 authored and Gegy committed Sep 13, 2024
1 parent 39a5fe1 commit 978ae7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ private static NbtCompound save(MapTemplate template, RegistryWrapper.WrapperLoo
}

public static Identifier getResourcePathFor(Identifier identifier) {
return Identifier.of(identifier.getNamespace(), "map_templates/" + identifier.getPath() + ".nbt");
return identifier.withPath(path -> "map_templates/" + path + ".nbt");
}
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"depends": {
"minecraft": ">=1.21-alpha.24.21.a",
"minecraft": ">=1.20.5-alpha.24.14.a",
"java": ">=21"
}
}

0 comments on commit 978ae7a

Please sign in to comment.