Skip to content

Commit

Permalink
Check y coordinate lower bounds in getTEWithLoad
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 4, 2013
1 parent 5f59f75 commit 4172b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/nallar/patched/world/PatchWorld.java
Expand Up @@ -340,7 +340,7 @@ public TileEntity getTEWithoutLoad(int x, int y, int z) {
@Override
@Declare
public TileEntity getTEWithLoad(int x, int y, int z) {
if (y >= 256) {
if (y >= 256 || y < 0) {
return null;
} else {
return chunkProvider.loadChunk(x >> 4, z >> 4).getChunkBlockTileEntity(x & 15, y, z & 15);
Expand Down

0 comments on commit 4172b4a

Please sign in to comment.