From e4f5f9eae8f46f153931a6b1e9a93d8938dc4dca Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 1 Nov 2016 18:54:37 -0500 Subject: [PATCH] Null Compounds will be henceforth considered air. --- .../chiseledblock/NBTBlobConverter.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/mod/chiselsandbits/chiseledblock/NBTBlobConverter.java b/src/main/java/mod/chiselsandbits/chiseledblock/NBTBlobConverter.java index 366e0149..74192b2f 100644 --- a/src/main/java/mod/chiselsandbits/chiseledblock/NBTBlobConverter.java +++ b/src/main/java/mod/chiselsandbits/chiseledblock/NBTBlobConverter.java @@ -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 );