Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jul 10, 2023
1 parent 893c16a commit e18e37c
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 @@ -112,13 +112,16 @@ public ShaderPack(Path root, Map<String, String> changedConfigs, Iterable<String

dimensionIds = new ArrayList<>();

final boolean[] hasDimensionIds = {false}; // Thanks Java

// This cannot be done in IDMap, as we do not have the include graph, and subsequently the shader settings.
List<String> dimensionIdCreator = loadProperties(root, "dimension.properties", environmentDefines).map(dimensionProperties -> {
hasDimensionIds[0] = dimensionProperties.size() > 0;
dimensionMap = parseDimensionMap(dimensionProperties, "dimension.", "dimension.properties");
return parseDimensionIds(dimensionProperties, "dimension.");
}).orElse(new ArrayList<>());

if (dimensionMap == null) {
if (!hasDimensionIds[0]) {
dimensionMap = new Object2ObjectArrayMap<>();

if (Files.exists(root.resolve("world0"))) {
Expand Down

2 comments on commit e18e37c

@douira
Copy link
Member

@douira douira commented on e18e37c Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lmao why was this necessary 😂

@IMS212
Copy link
Member Author

@IMS212 IMS212 commented on e18e37c Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lambdas don't like me

Please sign in to comment.