Commit 3ce9d969 authored by Patrycja Rosa's avatar Patrycja Rosa
Browse files

fix: Simplified code a bit

parent 9d06bb45
......@@ -4,13 +4,15 @@ import (
"net"
)
type PacketsInfo struct {
Clientbound map[uint8]func() Packet
Serverbound map[uint8]func() Packet
}
type Wrapper struct {
Conn net.Conn
IsClient bool
Packets struct {
Clientbound map[uint8]func() Packet
Serverbound map[uint8]func() Packet
}
Packets PacketsInfo
}
func (w Wrapper) ReadBytes(count uint64) ([]byte, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment