Remove travis things.

This commit is contained in:
Tnze
2023-04-09 14:40:48 +08:00
parent e99e749f7f
commit fd4a4bdeb1
3 changed files with 3 additions and 10 deletions

View File

@ -1,6 +0,0 @@
language: go
go:
- master
go_import_path: github.com/Tnze/go-mc

View File

@ -3,7 +3,6 @@
![Version](https://img.shields.io/badge/Minecraft-1.19.4-blue.svg) ![Version](https://img.shields.io/badge/Minecraft-1.19.4-blue.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/Tnze/go-mc.svg)](https://pkg.go.dev/github.com/Tnze/go-mc) [![Go Reference](https://pkg.go.dev/badge/github.com/Tnze/go-mc.svg)](https://pkg.go.dev/github.com/Tnze/go-mc)
[![Go Report Card](https://goreportcard.com/badge/github.com/Tnze/go-mc)](https://goreportcard.com/report/github.com/Tnze/go-mc) [![Go Report Card](https://goreportcard.com/badge/github.com/Tnze/go-mc)](https://goreportcard.com/report/github.com/Tnze/go-mc)
[![Build Status](https://travis-ci.org/Tnze/go-mc.svg?branch=master)](https://travis-ci.org/Tnze/go-mc)
[![Discord](https://img.shields.io/discord/915805561138860063?label=Discord)](https://discord.gg/A4qh8BT8Ue) [![Discord](https://img.shields.io/discord/915805561138860063?label=Discord)](https://discord.gg/A4qh8BT8Ue)
### [教程 · Tutorial](https://go-mc.github.io/tutorial/) ### [教程 · Tutorial](https://go-mc.github.io/tutorial/)

View File

@ -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()