The issue is because when it's calculating the difference between the last request, it checks if the last request is null, which it will be null if the nation is new. So it uses the current time and the difference between the last request becomes 0. Later, it checks if the difference is less than 1 and if it is, then it won't update resources. Simple fix, just putting this here so I remember in the future.
The issue is because when it's calculating the difference between the last request, it checks if the last request is null, which it will be null if the nation is new. So it uses the current time and the difference between the last request becomes 0. Later, it checks if the difference is less than 1 and if it is, then it won't update resources. Simple fix, just putting this here so I remember in the future.