Prevent the resource sent/received going down below 0
Merge branch 'master' of https://github.com/nkornek/Spaceship