Skip to content

Commit

Permalink
fix #68
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Dec 6, 2023
1 parent d3a78ff commit 3f7a523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod_version = 2.1.<patch>
# https://fabricmc.net/develop
minecraft_version = 1.19.2
loader_version = 0.14.19
fabric_version = 0.76.0+1.19.2
fabric_version = 0.77.0+1.19.2

serialization_hooks_version = 0.3.26
mixin_extras_version = 0.2.0-beta.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,5 @@ private String fixId(String path) {
return split.getNamespace() + ":shaders/core/" + split.getPath() + ".json";
}

@ModifyVariable(method = "getOrCreate", at = @At("STORE"), ordinal = 1)
private static String fixPath(String path, ResourceProvider resourceProvider, Program.Type programType, String name) {
if (!name.contains(":")) {
return path;
}
ResourceLocation split = new ResourceLocation(name);
return split.getNamespace() + ":shaders/core/" + split.getPath() + programType.getExtension();
}
// note: do not need to modify getOrCreate as FAPI does it
}

0 comments on commit 3f7a523

Please sign in to comment.