Skip to content

Commit b4ec3b9

Browse files
committed
Catch more exceptions when dealing with modded blocks
Might help with #359
1 parent 8060883 commit b4ec3b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/dave/compactmachines3/utility/ChunkUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ public static void loadEntities(World worldIn, NBTTagCompound compound, Chunk ch
257257
tileentity.onDataPacket(null, new SPacketUpdateTileEntity(tileentity.getPos(), 1, tag));
258258
} catch (NullPointerException npe) {
259259
Logz.debug("TileEntity '%s' is unable to read data packet without a network manager instance.", tileentity.getClass().getName());
260+
} catch (Exception e) {
261+
Logz.debug("TileEntity '%s' is unable to read data packet. Probably because of internally saved block positions or dimension. Report this to the Compact Machines author, not the blocks mod author!", tileentity.getClass().getName());
260262
}
261263
}
262264
}

0 commit comments

Comments
 (0)