Skip to content

Commit

Permalink
Null Compounds will be henceforth considered air.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Nov 1, 2016
1 parent 95400ba commit e4f5f9e
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -133,6 +133,19 @@ public final void writeChisleData(
public final boolean readChisleData(
final NBTTagCompound compound )
{
if ( compound == null )
{
voxelBlobRef = new VoxelBlobStateReference( 0, 0 );
format = voxelBlobRef.getFormat();

if ( tile != null )
{
return tile.updateBlob( this, triggerUpdates );
}

return false;
}

sideState = compound.getInteger( NBT_SIDE_FLAGS );
primaryBlockState = compound.getInteger( NBT_PRIMARY_STATE );
lightValue = compound.getInteger( NBT_LIGHTVALUE );
Expand Down

0 comments on commit e4f5f9e

Please sign in to comment.