Skip to content

Commit

Permalink
fix: filter BODY by Enum#name
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Jun 5, 2024
1 parent 6565325 commit a61ec52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

public class EquipmentMenu implements ArmorStandEditorMenu {

private static final EquipmentSlot[] EQUIPMENT_SLOTS = Arrays.stream(EquipmentSlot.values()).filter(slot -> slot != EquipmentSlot.BODY).toArray(EquipmentSlot[]::new);
private static final EquipmentSlot[] EQUIPMENT_SLOTS = Arrays.stream(EquipmentSlot.values()).filter(slot -> !slot.name().equals("BODY")).toArray(EquipmentSlot[]::new);
private static final int[] MENU_EQUIPMENT_SLOT_INDEXES = Arrays.stream(EQUIPMENT_SLOTS).mapToInt(EquipmentMenu::toMenuIndex).toArray();
private static final Set<Integer> MODIFIABLE_SLOTS = Arrays.stream(MENU_EQUIPMENT_SLOT_INDEXES).boxed().collect(Collectors.toUnmodifiableSet());
private static final ItemStack AIR = new ItemStack(Material.AIR);
Expand Down

0 comments on commit a61ec52

Please sign in to comment.