diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-10-21 18:03:05 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-10-21 18:03:05 +0200 |
commit | 56fa632d5e2b48a81f2a90878cb3656d1d3d563c (patch) | |
tree | d6411488e3e16bb9d6a59e062afa017b9c1ba012 | |
parent | Current Mob Spawning code. (diff) | |
download | cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.tar cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.tar.gz cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.tar.bz2 cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.tar.lz cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.tar.xz cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.tar.zst cuberite-56fa632d5e2b48a81f2a90878cb3656d1d3d563c.zip |
-rw-r--r-- | source/Chunk.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index 944cf82d9..5a54371ad 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -539,15 +539,15 @@ void cChunk::SpawnMobs(cMobSpawner& a_MobSpawner) // MG TODO: fix the "light" thing, I'm pretty sure that UnboundedRelGetBlock s not returning the right thing // MG TODO : check that "Level" really means Y - NIBBLETYPE SkyLight = GetSkyLight(Try_X, Try_Y+1, Try_Z); + NIBBLETYPE SkyLight = GetSkyLight(Try_X, Try_Y, Try_Z); if (!SkyLight) - SkyLight = GetSkyLight(Try_X, Try_Y, Try_Z); + SkyLight = GetSkyLight(Try_X, Try_Y + 1, Try_Z); if (!SkyLight) SkyLight = GetSkyLight(Try_X, Try_Y - 1, Try_Z); - NIBBLETYPE BlockLight = GetBlockLight(Try_X, Try_Y+1, Try_Z); + NIBBLETYPE BlockLight = GetBlockLight(Try_X, Try_Y, Try_Z); if (!BlockLight) - BlockLight = GetBlockLight(Try_X, Try_Y, Try_Z); + BlockLight = GetBlockLight(Try_X, Try_Y + 1, Try_Z); if (!BlockLight) BlockLight = GetBlockLight(Try_X, Try_Y - 1, Try_Z); |