diff --git a/src/api/java/baritone/api/BaritoneAPI.java b/src/api/java/baritone/api/BaritoneAPI.java index 821c4fab..dec7ec13 100644 --- a/src/api/java/baritone/api/BaritoneAPI.java +++ b/src/api/java/baritone/api/BaritoneAPI.java @@ -31,16 +31,15 @@ import java.util.ServiceLoader; * @author Brady * @since 9/23/2018 */ -public class BaritoneAPI { +public final class BaritoneAPI { - private static IBaritoneProvider baritone; - private static Settings settings; + private final static IBaritoneProvider baritone; + private final static Settings settings; static { ServiceLoader baritoneLoader = ServiceLoader.load(IBaritoneProvider.class); Iterator instances = baritoneLoader.iterator(); - if (instances.hasNext()) - baritone = instances.next(); + baritone = instances.next(); settings = new Settings(); }