diff --git a/handlers/packet_logger.go b/handlers/packet_logger.go index b85ad3d..9788bff 100644 --- a/handlers/packet_logger.go +++ b/handlers/packet_logger.go @@ -70,13 +70,23 @@ func NewDebugLogger(extraVerbose bool) *utils.ProxyHandler { var proxy *utils.ProxyContext + serverPool := packet.NewServerPool() + clientPool := packet.NewClientPool() + pool := make(packet.Pool) + for k, v := range serverPool { + pool[k] = v + } + for k, v := range clientPool { + pool[k] = v + } + return &utils.ProxyHandler{ Name: "Debug", ProxyRef: func(pc *utils.ProxyContext) { proxy = pc }, PacketFunc: func(header packet.Header, payload []byte, src, dst net.Addr) { - pk := utils.DecodePacket(proxy.Server.Pool(), header, payload) + pk := utils.DecodePacket(pool, header, payload) if pk == nil { return } diff --git a/subcommands/resourcepack-d/resourcepack-d.go b/subcommands/resourcepack-d/resourcepack-d.go index 1a71341..571045a 100644 Binary files a/subcommands/resourcepack-d/resourcepack-d.go and b/subcommands/resourcepack-d/resourcepack-d.go differ