Fixed monolith spawning

This commit is contained in:
StevenRS11
2013-06-15 02:09:17 -04:00
parent 4a5ea9efb3
commit fa4055f198
7 changed files with 105 additions and 15 deletions

View File

@@ -37,7 +37,7 @@ public class yCoordHelper
do
{
flag=false;
if(chunk.getBlockID(xC, yC-1, zC)!=0)
if(yC>0&&chunk.getBlockID(xC, yC-1, zC)!=0)
{
if(!Block.blocksList[chunk.getBlockID(xC, yC-1, zC)].blockMaterial.isReplaceable()||Block.blocksList[chunk.getBlockID(xC, yC-1, zC)].blockMaterial.isLiquid())
{
@@ -47,7 +47,7 @@ public class yCoordHelper
}
}
if(chunk.getBlockID(xC, yC, zC)!=0)
if(yC>0&&chunk.getBlockID(xC, yC, zC)!=0)
{
if(!Block.blocksList[chunk.getBlockID(xC, yC, zC)].blockMaterial.isReplaceable()||Block.blocksList[chunk.getBlockID(xC, yC, zC)].blockMaterial.isLiquid())
{