Remove travis things.
This commit is contained in:
@ -1,6 +0,0 @@
|
|||||||
language: go
|
|
||||||
|
|
||||||
go:
|
|
||||||
- master
|
|
||||||
|
|
||||||
go_import_path: github.com/Tnze/go-mc
|
|
@ -3,7 +3,6 @@
|
|||||||

|

|
||||||
[](https://pkg.go.dev/github.com/Tnze/go-mc)
|
[](https://pkg.go.dev/github.com/Tnze/go-mc)
|
||||||
[](https://goreportcard.com/report/github.com/Tnze/go-mc)
|
[](https://goreportcard.com/report/github.com/Tnze/go-mc)
|
||||||
[](https://travis-ci.org/Tnze/go-mc)
|
|
||||||
[](https://discord.gg/A4qh8BT8Ue)
|
[](https://discord.gg/A4qh8BT8Ue)
|
||||||
|
|
||||||
### [教程 · Tutorial](https://go-mc.github.io/tutorial/)
|
### [教程 · Tutorial](https://go-mc.github.io/tutorial/)
|
||||||
|
@ -101,13 +101,13 @@ func (p *Packet) packWithCompression(w io.Writer, threshold int) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func compressPacket(w io.Writer, PacketID int32, Data []byte) error {
|
func compressPacket(w io.Writer, packetID int32, data []byte) error {
|
||||||
zw := zlibPool.Get().(*zlib.Writer)
|
zw := zlibPool.Get().(*zlib.Writer)
|
||||||
defer zlibPool.Put(zw)
|
defer zlibPool.Put(zw)
|
||||||
zw.Reset(w)
|
zw.Reset(w)
|
||||||
|
|
||||||
_, _ = VarInt(PacketID).WriteTo(zw)
|
_, _ = VarInt(packetID).WriteTo(zw)
|
||||||
if _, err := zw.Write(Data); err != nil {
|
if _, err := zw.Write(data); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return zw.Close()
|
return zw.Close()
|
||||||
|
Reference in New Issue
Block a user