1616package org .glavo .nbt .tag ;
1717
1818import org .glavo .nbt .NBTElement ;
19- import org .glavo .nbt .internal .IOUtils ;
2019import org .glavo .nbt .internal .input .InputSource ;
2120import org .glavo .nbt .internal .input .NBTReader ;
2221import org .glavo .nbt .internal .output .NBTWriter ;
@@ -52,7 +51,7 @@ public sealed abstract class Tag implements NBTElement
5251 }
5352
5453 public static Tag readTag (InputStream inputStream ) throws IOException {
55- return readTag (inputStream , IOUtils . DEFAULT_BYTE_ORDER );
54+ return readTag (inputStream , ByteOrder . BIG_ENDIAN );
5655 }
5756
5857 public static Tag readTag (InputStream inputStream , ByteOrder byteOrder ) throws IOException {
@@ -66,7 +65,7 @@ public static Tag readTag(InputStream inputStream, ByteOrder byteOrder) throws I
6665 }
6766
6867 public static CompoundTag <?> readCompoundTag (InputStream inputStream ) throws IOException {
69- return readCompoundTag (inputStream , IOUtils . DEFAULT_BYTE_ORDER );
68+ return readCompoundTag (inputStream , ByteOrder . BIG_ENDIAN );
7069 }
7170
7271 public static CompoundTag <?> readCompoundTag (InputStream inputStream , ByteOrder byteOrder ) throws IOException {
@@ -125,7 +124,7 @@ public int getIndex() {
125124 }
126125
127126 public void writeTo (OutputStream outputStream ) throws IOException {
128- writeTo (outputStream , IOUtils . DEFAULT_BYTE_ORDER );
127+ writeTo (outputStream , ByteOrder . BIG_ENDIAN );
129128 }
130129
131130 public void writeTo (OutputStream outputStream , ByteOrder byteOrder ) throws IOException {
0 commit comments