refactor: use SkinPart.VALUES instead of hardcoding all skin parts

This commit is contained in:
ChomeNS
2025-02-21 08:28:30 +07:00
parent d44a29528c
commit eba10601d1
2 changed files with 2 additions and 9 deletions

View File

@@ -1 +1 @@
1556
1558

View File

@@ -213,14 +213,7 @@ public class Bot {
// this enables all the skin parts (by default they are ALL DISABLED
// which is why most bots when they use someone's skin they are just
// kinda broken)
final List<SkinPart> skinParts = new ArrayList<>();
skinParts.add(SkinPart.CAPE);
skinParts.add(SkinPart.JACKET);
skinParts.add(SkinPart.LEFT_SLEEVE);
skinParts.add(SkinPart.RIGHT_SLEEVE);
skinParts.add(SkinPart.LEFT_PANTS_LEG);
skinParts.add(SkinPart.RIGHT_PANTS_LEG);
skinParts.add(SkinPart.HAT);
final List<SkinPart> skinParts = new ArrayList<>(Arrays.asList(SkinPart.VALUES));
// we also set other stuffs here
session.send(