mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Moved the .needsUpdate inside for better encapsulation.
This commit is contained in:
parent
ed869c4ef9
commit
4092b87cb1
@ -578,6 +578,7 @@ public class Pet implements ISerialize, Runnable {
|
|||||||
this.addHappyness(10);
|
this.addHappyness(10);
|
||||||
this.addExperience(10);
|
this.addExperience(10);
|
||||||
this.addRespect();
|
this.addRespect();
|
||||||
|
this.needsUpdate = true;
|
||||||
|
|
||||||
if (habbo != null) {
|
if (habbo != null) {
|
||||||
habbo.getHabboStats().petRespectPointsToGive--;
|
habbo.getHabboStats().petRespectPointsToGive--;
|
||||||
|
@ -25,7 +25,6 @@ public class ScratchPetEvent extends MessageHandler {
|
|||||||
pet.scratched(this.client.getHabbo());
|
pet.scratched(this.client.getHabbo());
|
||||||
|
|
||||||
// Update the stats to the database.
|
// Update the stats to the database.
|
||||||
pet.needsUpdate = true;
|
|
||||||
Emulator.getThreading().run(pet);
|
Emulator.getThreading().run(pet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user