mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Fix Follow Left/Right
This commit is contained in:
parent
df0b34a7bd
commit
8e449e79a1
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user