Skip to content

Commit

Permalink
rename shadowRenderDistance to maxShadowRenderDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Sep 4, 2021
1 parent 9f905e2 commit 9247fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/coderbot/iris/config/IrisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void load() throws IOException {
shaderPackName = properties.getProperty("shaderPack");
enableShaders = !"false".equals(properties.getProperty("enableShaders"));
try {
IrisVideoSettings.shadowDistance = Integer.parseInt(properties.getProperty("shadowRenderDistance", "32"));
IrisVideoSettings.shadowDistance = Integer.parseInt(properties.getProperty("maxShadowRenderDistance", "32"));
} catch (NumberFormatException e) {
Iris.logger.error("Shadow distance setting reset; value is invalid.");
IrisVideoSettings.shadowDistance = 32;
Expand All @@ -132,7 +132,7 @@ public void save() throws IOException {
Properties properties = new Properties();
properties.setProperty("shaderPack", getShaderPackName().orElse(""));
properties.setProperty("enableShaders", enableShaders ? "true" : "false");
properties.setProperty("shadowRenderDistance", String.valueOf(IrisVideoSettings.shadowDistance));
properties.setProperty("maxShadowRenderDistance", String.valueOf(IrisVideoSettings.shadowDistance));
// NB: This uses ISO-8859-1 with unicode escapes as the encoding
properties.store(Files.newOutputStream(propertiesPath), COMMENT);
}
Expand Down

0 comments on commit 9247fc5

Please sign in to comment.