When the amount of resources in the warehouse matches the protected resources, it won't show the lock in the first tab of the script. It considers resources not to be safe. As long as resources stored are just 1 unit below the safe amount, the lock will show.
Protected resources bug
When the amount of resources in the warehouse matches the protected resources, it won't show the lock in the first tab of the script. It considers resources not to be safe. As long as resources stored are just 1 unit below the safe amount, the lock will show.