just comments nothing interesting

This commit is contained in:
Chayapak 2023-10-21 11:50:20 +07:00
parent c0a1681b27
commit b146c8f52d

View file

@ -173,6 +173,9 @@ public class Bot {
listener.connected(new ConnectedEvent(session)); listener.connected(new ConnectedEvent(session));
} }
// 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<>(); final List<SkinPart> skinParts = new ArrayList<>();
skinParts.add(SkinPart.CAPE); skinParts.add(SkinPart.CAPE);
skinParts.add(SkinPart.JACKET); skinParts.add(SkinPart.JACKET);
@ -182,6 +185,7 @@ public class Bot {
skinParts.add(SkinPart.RIGHT_PANTS_LEG); skinParts.add(SkinPart.RIGHT_PANTS_LEG);
skinParts.add(SkinPart.HAT); skinParts.add(SkinPart.HAT);
// we also set other stuffs here
session.send( session.send(
new ServerboundClientInformationPacket( new ServerboundClientInformationPacket(
ComponentUtilities.language.getOrDefault("language.code", "en-us"), ComponentUtilities.language.getOrDefault("language.code", "en-us"),
@ -191,7 +195,7 @@ public class Bot {
skinParts, skinParts,
HandPreference.RIGHT_HAND, HandPreference.RIGHT_HAND,
false, false,
true true // should this be false lol so only real players are displayed
) )
); );