Skip to content

Commit

Permalink
Fix any dimension without a sky getting flagged as the nether (#857)
Browse files Browse the repository at this point in the history
* fix crash when connected textures are disabled, but custom colors are enabled.

* Dimension Check Fix

Dimension check set any dimension with no sky as the nether; this includes the end, and several custom dims such as Witchery's mirror dim, etc.
  • Loading branch information
calreveraster authored Feb 1, 2025
1 parent f22a3f6 commit 208373d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/coderbot/iris/Iris.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public static DimensionId getCurrentDimension() {
if (level != null) {
if (level.provider == null) return DimensionId.OVERWORLD;

if ((level.provider.isHellWorld || level.provider.hasNoSky) || level.provider.dimensionId == -1) {
if (level.provider.isHellWorld || level.provider.dimensionId == -1) {
return DimensionId.NETHER;
} else if (level.provider.dimensionId == 1) {
return DimensionId.END;
Expand Down

0 comments on commit 208373d

Please sign in to comment.