Moved the .needsUpdate inside for better encapsulation.

This commit is contained in:
MartenM 2020-12-24 17:34:28 +01:00
parent ed869c4ef9
commit 4092b87cb1
2 changed files with 1 additions and 1 deletions

View File

@ -578,6 +578,7 @@ public class Pet implements ISerialize, Runnable {
this.addHappyness(10);
this.addExperience(10);
this.addRespect();
this.needsUpdate = true;
if (habbo != null) {
habbo.getHabboStats().petRespectPointsToGive--;

View File

@ -25,7 +25,6 @@ public class ScratchPetEvent extends MessageHandler {
pet.scratched(this.client.getHabbo());
// Update the stats to the database.
pet.needsUpdate = true;
Emulator.getThreading().run(pet);
}
}