mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-02-21 02:31:59 +01:00
Reference slot directly
This commit is contained in:
parent
e9d7e8fe24
commit
56cfbfb9c1
@ -2547,8 +2547,7 @@ public class DisguiseUtilities {
|
||||
List<Equipment> list = new ArrayList<>();
|
||||
|
||||
for (EquipmentSlot slot : EquipmentSlot.values()) {
|
||||
// TODO Change when it's an actual slot
|
||||
if (slot.name().equals("BODY")) {
|
||||
if (slot == EquipmentSlot.BODY) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -340,8 +340,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
|
||||
// This sends the armor packets so that the player isn't naked.
|
||||
if (DisguiseConfig.isEquipmentPacketsEnabled()) {
|
||||
for (EquipmentSlot slot : EquipmentSlot.values()) {
|
||||
// TODO Change when it's an actual slot
|
||||
if (slot.name().equals("BODY")) {
|
||||
if (slot == EquipmentSlot.BODY) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user