prevent users from being able to collect more than the max stack if they are AFK for too long

This commit is contained in:
Grant 2024-07-12 03:03:54 -06:00
parent b9487ba803
commit fe5abb18e2
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ export class SocketServer {
getClientConfig() getClientConfig()
); );
await user.update();
// this impl has the side affect of giving previously offline users all the stack upon reconnecting // this impl has the side affect of giving previously offline users all the stack upon reconnecting
if ( if (
timeSinceLastPlace >= cooldown && timeSinceLastPlace >= cooldown &&