Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
Always initialize heightmap
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
LB-- committed Feb 6, 2014
1 parent 2d46601 commit c9eac37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/LB_Stuff/NBT/Minecraft/Chunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Chunk
/**
* Used for sky light calculation, 16x16.
*/
private int[] heightmap;
private int[] heightmap = new int[256];
/**
* Section
*/
Expand Down Expand Up @@ -1003,4 +1003,4 @@ public Tag.Compound ToNBT(String name)
}
return new Tag.Compound(name, t);
}
}
}

0 comments on commit c9eac37

Please sign in to comment.