Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.minecrafttas.tasmod.tickratechanger.TickrateChangerServer.TickratePauseState;

import net.minecraft.nbt.CompressedStreamTools;
import net.minecraft.nbt.NBTSizeTracker;
import net.minecraft.nbt.NBTTagCompound;

public class TASmodBufferBuilder extends ByteBufferBuilder {
Expand Down Expand Up @@ -43,7 +42,7 @@ public TASmodBufferBuilder writeNBTTagCompound(NBTTagCompound compound) {
DataOutputStream dataout = new DataOutputStream(out);

try {
CompressedStreamTools.write(compound, dataout);
CompressedStreamTools.writeCompressed(compound, dataout);
} catch (IOException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -86,7 +85,7 @@ public static NBTTagCompound readNBTTagCompound(ByteBuffer buf) throws IOExcepti

DataInputStream datain = new DataInputStream(input);

NBTTagCompound compound = CompressedStreamTools.read(datain, NBTSizeTracker.INFINITE);
NBTTagCompound compound = CompressedStreamTools.readCompressed(datain);

input.close();
datain.close();
Expand Down