Skip to content

Commit

Permalink
fix: forever sleeping sygotchi
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Zauberer committed Aug 3, 2023
1 parent 1edce84 commit b45a5b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public void updateTamagotchi() {
tamagotchi.setDirty(Math.max(tamagotchi.getDirty() - 0.05, 0));
if (!tamagotchi.isSleeping()) {
tamagotchi.setTired(Math.max(tamagotchi.getTired() - 0.05, 0));
if (tamagotchi.getTired() >= 0) {
if (tamagotchi.getTired() <= 0) {
tamagotchi.setSleeping(true);
tamagotchi.setStartedSleeping(new Timestamp(new Date().getTime()));
}
Expand Down

0 comments on commit b45a5b8

Please sign in to comment.