Skip to content

Commit

Permalink
make sleepingtrait persist better
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 19, 2020
1 parent e462a8b commit a9c1025
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -31,6 +31,13 @@ public void run() {
}
}

@Override
public void onSpawn() {
if (sleeping) {
PlayerAnimation.SLEEP.play((Player) npc.getEntity());
}
}

/**
* Makes the NPC sleep
*/
Expand Down

0 comments on commit a9c1025

Please sign in to comment.