mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Update for OpenNBT changes.
This commit is contained in:
parent
513fbb4f43
commit
5954134812
1 changed files with 2 additions and 4 deletions
|
@ -20,8 +20,6 @@ import org.spacehq.packetlib.io.NetOutput;
|
|||
import org.spacehq.packetlib.io.stream.StreamNetInput;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
@ -42,7 +40,7 @@ public class NetUtil {
|
|||
if(b == 0) {
|
||||
return null;
|
||||
} else {
|
||||
return (CompoundTag) NBTIO.readTag(new DataInputStream(new NetInputStream(in, b)));
|
||||
return (CompoundTag) NBTIO.readTag(new NetInputStream(in, b));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -50,7 +48,7 @@ public class NetUtil {
|
|||
if(tag == null) {
|
||||
out.writeByte(0);
|
||||
} else {
|
||||
NBTIO.writeTag(new DataOutputStream(new NetOutputStream(out)), tag);
|
||||
NBTIO.writeTag(new NetOutputStream(out), tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue