Skip to content

Commit

Permalink
Ensure that the pet goal selector *always* exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DSH105 committed Oct 1, 2014
1 parent 08683c6 commit 158d0c3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ protected void bi() {

this.getEntitySenses().a();

// If this ever happens...
if (this.petGoalSelector == null) {
this.remove(false);
return;
}
this.petGoalSelector.updateGoals();

this.getNavigation().f();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ protected void bn() {

this.getEntitySenses().a();

// If this ever happens...
if (this.petGoalSelector == null) {
this.remove(false);
return;
}
this.petGoalSelector.updateGoals();

this.getNavigation().f();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ protected void bm() {

this.getEntitySenses().a();

// If this ever happens...
if (this.petGoalSelector == null) {
this.remove(false);
return;
}
this.petGoalSelector.updateGoals();

this.getNavigation().f();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ protected void bm() {

this.getEntitySenses().a();

// If this ever happens...
if (this.petGoalSelector == null) {
this.remove(false);
return;
}
this.petGoalSelector.updateGoals();

this.getNavigation().f();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ protected void bn() {

this.getEntitySenses().a();

// If this ever happens...
if (this.petGoalSelector == null) {
this.remove(false);
return;
}
this.petGoalSelector.updateGoals();

this.getNavigation().f();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ protected void bn() {

this.getEntitySenses().a();

// If this ever happens...
if (this.petGoalSelector == null) {
this.remove(false);
return;
}
this.petGoalSelector.updateGoals();

this.getNavigation().f();
Expand Down

0 comments on commit 158d0c3

Please sign in to comment.