that wasnt supposed to be public.

This commit is contained in:
olebeck 2022-07-30 02:03:09 +02:00
parent 09a788cc1b
commit bc28e37b13
1 changed files with 11 additions and 9 deletions

20
main.go
View File

@ -73,15 +73,17 @@ func PacketLogger(header packet.Header, payload []byte, src, dst net.Addr) {
case *packet.BlockActorData:
return
case *packet.ResourcePacksInfo:
for _, pack := range pk.TexturePacks {
fmt.Printf("%s %s\n", pack.ContentIdentity, pack.ContentKey)
}
fmt.Printf("writing keys file")
var keys map[string]string = make(map[string]string)
for _, pack := range pk.TexturePacks {
keys[pack.ContentIdentity] = pack.ContentKey
}
dump_keys(keys)
/*
for _, pack := range pk.TexturePacks {
fmt.Printf("%s %s\n", pack.ContentIdentity, pack.ContentKey)
}
fmt.Printf("writing keys file")
var keys map[string]string = make(map[string]string)
for _, pack := range pk.TexturePacks {
keys[pack.ContentIdentity] = pack.ContentKey
}
dump_keys(keys)
*/
return
}