dont overwrite skins

This commit is contained in:
olebeck 2022-03-05 15:13:05 +01:00
parent f167b1712b
commit eebc48021a
1 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ func init() {
}
var players = make(map[string]string)
var player_counts = make(map[string]int)
var out_path string
var name_regexp = regexp.MustCompile(`§.`)
@ -204,7 +205,8 @@ func skin_main(args []string) error {
if name == "" {
name = _pk.UUID.String()
}
write_skin(name, _pk.Skin)
player_counts[name]++
write_skin(fmt.Sprintf("%s_%d", name, player_counts[name]), _pk.Skin)
case *packet.PlayerList:
if _pk.ActionType == 1 { // remove
continue