Skip to content

Commit

Permalink
Remove travis things.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Apr 9, 2023
1 parent e99e749 commit fd4a4bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
![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 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)

### [教程 · Tutorial](https://go-mc.github.io/tutorial/)
Expand Down
6 changes: 3 additions & 3 deletions net/packet/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ func (p *Packet) packWithCompression(w io.Writer, threshold int) error {
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)
defer zlibPool.Put(zw)
zw.Reset(w)

_, _ = VarInt(PacketID).WriteTo(zw)
if _, err := zw.Write(Data); err != nil {
_, _ = VarInt(packetID).WriteTo(zw)
if _, err := zw.Write(data); err != nil {
return err
}
return zw.Close()
Expand Down

0 comments on commit fd4a4bd

Please sign in to comment.