Skip to content

Commit

Permalink
We're almost there
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jul 9, 2023
1 parent cad92f0 commit 893c16a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/coderbot/iris/shaderpack/ShaderPack.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public ShaderPack(Path root, Map<String, String> changedConfigs, Iterable<String
return source;
};

this.base = new ProgramSet(AbsolutePackPath.fromAbsolutePath("/" + dimensionMap.getOrDefault(new NamespacedId("iris", "base"), "")), sourceProvider, shaderProperties, this);
this.base = new ProgramSet(AbsolutePackPath.fromAbsolutePath("/" + dimensionMap.getOrDefault(new NamespacedId("*", "*"), "")), sourceProvider, shaderProperties, this);

this.overrides = new HashMap<>();

Expand Down Expand Up @@ -388,6 +388,9 @@ private static Map<NamespacedId, String> parseDimensionMap(Properties properties
key = key.substring(keyPrefix.length());

for (String part : value.split("\\s+")) {
if (part.equals("*")) {
overrides.put(new NamespacedId("*", "*"), key);
}
overrides.put(new NamespacedId(part), key);
}
});
Expand Down

0 comments on commit 893c16a

Please sign in to comment.