Fix Follow Left/Right

This commit is contained in:
brenoepic 2022-04-08 01:44:21 -03:00
parent df0b34a7bd
commit 8e449e79a1
2 changed files with 4 additions and 6 deletions

View File

@ -10,14 +10,13 @@ import com.eu.habbo.threading.runnables.PetFollowHabbo;
public class ActionFollowLeft extends PetAction {
public ActionFollowLeft() {
super(PetTasks.FOLLOW, true);
super(PetTasks.FOLLOW, false);
}
@Override
public boolean apply(Pet pet, Habbo habbo, String[] data) {
//Follow left.
pet.clearPosture();
pet.setTask(PetTasks.FOLLOW);
Emulator.getThreading().run(new PetFollowHabbo(pet, habbo, -2));
if (pet.getHappyness() > 75)

View File

@ -10,14 +10,13 @@ import com.eu.habbo.threading.runnables.PetFollowHabbo;
public class ActionFollowRight extends PetAction {
public ActionFollowRight() {
super(PetTasks.FOLLOW, true);
super(PetTasks.FOLLOW, false);
}
@Override
public boolean apply(Pet pet, Habbo habbo, String[] data) {
//Follow right.
pet.clearPosture();
pet.setTask(PetTasks.FOLLOW);
Emulator.getThreading().run(new PetFollowHabbo(pet, habbo, +2));
if (pet.getHappyness() > 75)