Commit fe5abb18 authored by Grant's avatar Grant
Browse files

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

parent b9487ba8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -132,6 +132,8 @@ export class SocketServer {
          getClientConfig()
        );

        await user.update();

        // this impl has the side affect of giving previously offline users all the stack upon reconnecting
        if (
          timeSinceLastPlace >= cooldown &&