From fc3c896b8047038362e8ffb36efdb28313633700 Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Sat, 8 Jan 2022 04:57:04 -0500 Subject: [PATCH] Add check for hash capacity > 0 for MAX_CACHE Achievement would trigger as soon as you entered the node as the capacity was 0. --- src/Electron.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Electron.tsx b/src/Electron.tsx index 4f7221e4f..d72b0e7fe 100644 --- a/src/Electron.tsx +++ b/src/Electron.tsx @@ -274,7 +274,9 @@ const achievements: Achievement[] = [ { ID: "HACKNET_SERVER_1B", Condition: () => hasHacknetServers(Player) && Player.moneySourceB.hacknet >= 1e9 }, { ID: "MAX_CACHE", - Condition: () => hasHacknetServers(Player) && Player.hashManager.hashes === Player.hashManager.capacity, + Condition: () => hasHacknetServers(Player) && + Player.hashManager.hashes === Player.hashManager.capacity && + Player.hashManager.capacity > 0, }, { ID: "SLEEVE_8",