Fixed a crash in redstone simulator when destroying blocks in Y < 2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1084 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
9d5a1a9f6d
commit
af66f8ebae
@ -456,6 +456,10 @@ int cRedstoneSimulator::UnPowerBlock( const Vector3i & a_BlockPos, const Vector3
|
||||
{
|
||||
BLOCKTYPE BlockType;
|
||||
NIBBLETYPE BlockMeta;
|
||||
if ((a_BlockPos.y < 0) || (a_BlockPos.y >= cChunkDef::Height))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
m_World->GetBlockTypeMeta(a_BlockPos.x, a_BlockPos.y, a_BlockPos.z, BlockType, BlockMeta);
|
||||
switch (BlockType)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user