Skip to content

Commit

Permalink
Update RMLCrTLoader.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecdcaeb committed Mar 17, 2024
1 parent 0f63810 commit 95579e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/mods/Hileb/rml/compat/crt/RMLCrTLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ public static IScriptProvider getScriptProviders(){

String name = FilenameUtils.removeExtension(relative).replaceAll("\\\\", "/");
ResourceLocation key = new ResourceLocation(modContainer.getModId(), name);
name = "rml/"+key.getResourceDomain()+"/"+name;
name = key.getResourceDomain()+"/"+name;
try{
byte[] fileBytes = FileHelper.getByteSource(file).read();

name = "rml/"+ new String(fileBytes).hashCode() + "/"+ name;
name = name.replace('/','_');
providerCustom.add(name, fileBytes);

RMLFMLLoadingPlugin.Container.LOGGER.info("Injected {} for CrT",key);
Expand Down

0 comments on commit 95579e4

Please sign in to comment.