This commit is contained in:
olebeck 2023-02-08 20:02:05 +01:00
parent 55916e4e55
commit 4d4eb37647
2 changed files with 6 additions and 2 deletions

View File

@ -72,7 +72,11 @@ func (s *SkinPack) Save(fpath, serverName string) error {
}
}
entry := skinEntry{LocalizationName: skinName, Texture: skinName, Type: "free"}
entry := skinEntry{
LocalizationName: skinName,
Texture: skinName + ".png",
Type: "free",
}
if s2.skin.ArmSize == "wide" {
entry.Geometry = "minecraft.geometry.steve"
} else {

View File

@ -111,7 +111,7 @@ func (s *skinsSession) ProcessPacket(pk packet.Packet) {
func (s *skinsSession) Save(fpath string) error {
logrus.Infof("Saving %d players", len(s.playerSkinPacks))
for id, sp := range s.playerSkinPacks {
err := sp.Save(path.Join(fpath, s.playerNames[id]))
err := sp.Save(path.Join(fpath, s.playerNames[id]), s.ServerName)
if err != nil {
logrus.Warn(err)
}