From c94269e0c952745a60a4d1f12c5a5daed019db40 Mon Sep 17 00:00:00 2001
From: Chris Kearney <chris@kearneymail.com>
Date: Wed, 6 Jul 2016 08:52:18 -0700
Subject: [PATCH] this is a better way to grab all equipment slots

---
 .../comandante/creeper/player/EquipmentSlotType.java   | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/main/java/com/comandante/creeper/player/EquipmentSlotType.java b/src/main/java/com/comandante/creeper/player/EquipmentSlotType.java
index dd990f07..c7617197 100644
--- a/src/main/java/com/comandante/creeper/player/EquipmentSlotType.java
+++ b/src/main/java/com/comandante/creeper/player/EquipmentSlotType.java
@@ -36,14 +36,6 @@ public enum EquipmentSlotType {
     }
 
     public static List<EquipmentSlotType> getAll() {
-        List<EquipmentSlotType> theName = Lists.newArrayList();
-        theName.add(EquipmentSlotType.HEAD);
-        theName.add(EquipmentSlotType.CHEST);
-        theName.add(EquipmentSlotType.WRISTS);
-        theName.add(EquipmentSlotType.HAND);
-        theName.add(EquipmentSlotType.LEGS);
-        theName.add(EquipmentSlotType.FEET);
-        theName.add(EquipmentSlotType.BAG);
-        return theName;
+        return Lists.newArrayList(EquipmentSlotType.values());
     }
 }
-- 
GitLab