Skip to content

Commit aad15a2

Browse files
committed
Call reassess tame goals upon read
Remove duplicate removal code
1 parent 4cf70e8 commit aad15a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/src/main/java/net/chococraft/common/entity/AbstractChocobo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public void readAdditionalSaveData(CompoundTag compound) {
157157
this.setSaddleType(ItemStack.parseOptional(this.registryAccess(), compound.getCompound("wornSaddle")));
158158

159159
this.setAllowedFlight(compound.getBoolean(NBTKEY_ALLOWED_FLIGHT));
160+
this.reassessTameGoals();
160161
}
161162

162163
@Override
@@ -666,10 +667,8 @@ protected void reassessTameGoals() {
666667

667668
if (isTame()) {
668669
goalSelector.addGoal(4, healInPenGoal);
669-
goalSelector.removeGoal(chocoboAvoidPlayerGoal);
670670
} else {
671671
goalSelector.addGoal(5, chocoboAvoidPlayerGoal);
672-
goalSelector.removeGoal(healInPenGoal);
673672
}
674673
}
675674

0 commit comments

Comments
 (0)