File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/dave/compactmachines3/network Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,15 @@ public void toBytes(ByteBuf buf) {
4040 ByteBuf tmpBuf = Unpooled .buffer ();
4141 ByteBufUtils .writeTag (tmpBuf , data );
4242
43- if (tmpBuf .writerIndex () >= 2097152 - 8 ) {
43+ if (tmpBuf .writerIndex () >= 1900000 - 8 ) {
4444 Logz .debug ("Chunk data to big to send. Stripping TileEntity nbt data!" );
45+
4546 data .removeTag ("TileEntities" );
4647
4748 ByteBuf tmpBufNoTiles = Unpooled .buffer ();
4849 ByteBufUtils .writeTag (tmpBufNoTiles , data );
4950
50- if (tmpBufNoTiles .writerIndex () >= 2097152 - 8 ) {
51+ if (tmpBufNoTiles .writerIndex () >= 1900000 - 8 ) {
5152 Logz .warn ("Chunk data to big even without nbt data. Sending no chunk data!" );
5253 ByteBufUtils .writeTag (buf , new NBTTagCompound ());
5354 } else {
You can’t perform that action at this time.
0 commit comments