Skip to content

Commit

Permalink
backport fix for #68 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored Jan 22, 2024
1 parent 3796468 commit 6579e46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ mod_version = 1.2.<patch>-beta

# https://fabricmc.net/develop
minecraft_version = 1.18.2
loader_version = 0.14.19
fabric_version = 0.56.0+1.18.2
loader_version = 0.15.6
fabric_version = 0.77.0+1.18.2
serialization_hooks_version = 0.3.23

forge_tags_version = 2.1
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 6579e46

Please sign in to comment.