Fix uninitialized beahvior list

This commit is contained in:
Brady 2018-08-01 21:41:36 -07:00
parent 774b906d19
commit ae59f0606d
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -3,6 +3,7 @@ package baritone.bot;
import baritone.bot.behavior.Behavior; import baritone.bot.behavior.Behavior;
import org.reflections.Reflections; import org.reflections.Reflections;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
@ -39,6 +40,7 @@ public enum Baritone {
this.actionHandler = new GameActionHandler(); this.actionHandler = new GameActionHandler();
this.gameEventHandler = new GameEventHandler(); this.gameEventHandler = new GameEventHandler();
this.inputOverrideHandler = new InputOverrideHandler(); this.inputOverrideHandler = new InputOverrideHandler();
this.behaviors = new ArrayList<>();
this.active = true; this.active = true;
this.initialized = true; this.initialized = true;