Skip to content

Commit

Permalink
fix: NPE error in DimensionType#decode
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Aug 12, 2024
1 parent 40f7463 commit ca725b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static DimensionType decode(NBT nbt, ClientVersion version, @Nullable TypesBuild
int height = 256;
ResourceLocation effectsLocation = null;
NBT monsterSpawnLightLevel = null;
Integer monsterSpawnBlockLightLimit = null;
int monsterSpawnBlockLightLimit = 0;
if (version.isNewerThanOrEquals(ClientVersion.V_1_16_2)) {
coordinateScale = compound.getNumberTagOrThrow("coordinate_scale").getAsDouble();
effectsLocation = new ResourceLocation(compound.getStringTagValueOrThrow("effects"));
Expand Down

0 comments on commit ca725b6

Please sign in to comment.