From d7b8ec127421f923c91cdaddf1567aee0d01f2fc Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 23 May 2012 07:33:19 -0400 Subject: [PATCH] Cleanup. --- src/main/java/com/gmail/nossr50/config/Config.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/Config.java b/src/main/java/com/gmail/nossr50/config/Config.java index 3d08e658c..01b3e5405 100644 --- a/src/main/java/com/gmail/nossr50/config/Config.java +++ b/src/main/java/com/gmail/nossr50/config/Config.java @@ -461,14 +461,15 @@ public class Config extends ConfigLoader { // Setup default HUD String temp = config.getString("Spout.HUD.Default", "STANDARD"); - + for (HUDType x : HUDType.values()) { if (x.toString().toLowerCase().equalsIgnoreCase(temp.toString().toLowerCase())) { defaulthud = x; } } - if(defaulthud == null) + if (defaulthud == null) { defaulthud = HUDType.STANDARD; + } } }