diff --git a/src/main/java/com/garbagemule/MobArena/waves/MACreature.java b/src/main/java/com/garbagemule/MobArena/waves/MACreature.java index 295edf2..26d2844 100644 --- a/src/main/java/com/garbagemule/MobArena/waves/MACreature.java +++ b/src/main/java/com/garbagemule/MobArena/waves/MACreature.java @@ -25,11 +25,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -public class MACreature -{ - private static Map map; +public class MACreature { + + private static final Map map = new HashMap<>(); + private static final List colors = Arrays.asList(DyeColor.values()); + static { - map = new HashMap<>(); registerEntityTypeValues(); registerExtraAliases(); registerTypeVariants(); @@ -37,14 +38,14 @@ public class MACreature registerBrokenTypes(); } - private List colors = Arrays.asList(DyeColor.values()); - private String name; - private String plural; - private EntityType type; + private final String name; + private final String plural; + private final EntityType type; public MACreature(EntityType type, String name) { this.type = type; this.name = name; + this.plural = null; } /**