File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/com/minecrafttas/tasmod/networking Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1414import com .minecrafttas .tasmod .tickratechanger .TickrateChangerServer .TickratePauseState ;
1515
1616import net .minecraft .nbt .CompressedStreamTools ;
17- import net .minecraft .nbt .NBTSizeTracker ;
1817import net .minecraft .nbt .NBTTagCompound ;
1918
2019public class TASmodBufferBuilder extends ByteBufferBuilder {
@@ -43,7 +42,7 @@ public TASmodBufferBuilder writeNBTTagCompound(NBTTagCompound compound) {
4342 DataOutputStream dataout = new DataOutputStream (out );
4443
4544 try {
46- CompressedStreamTools .write (compound , dataout );
45+ CompressedStreamTools .writeCompressed (compound , dataout );
4746 } catch (IOException e ) {
4847 e .printStackTrace ();
4948 }
@@ -86,7 +85,7 @@ public static NBTTagCompound readNBTTagCompound(ByteBuffer buf) throws IOExcepti
8685
8786 DataInputStream datain = new DataInputStream (input );
8887
89- NBTTagCompound compound = CompressedStreamTools .read (datain , NBTSizeTracker . INFINITE );
88+ NBTTagCompound compound = CompressedStreamTools .readCompressed (datain );
9089
9190 input .close ();
9291 datain .close ();
You can’t perform that action at this time.
0 commit comments