port changes to 1.21

This commit is contained in:
IThundxr 2024-09-22 18:20:36 -04:00
parent a3bb585a15
commit 42bdd3693c
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -41,7 +41,7 @@ public class ShaderSources {
}
private static ResourceLocation locationWithoutFlywheelPrefix(ResourceLocation loc) {
return new ResourceLocation(loc.getNamespace(), loc.getPath()
return ResourceLocation.fromNamespaceAndPath(loc.getNamespace(), loc.getPath()
.substring(SHADER_DIR.length()));
}