Reordered if statement

Permission denials were being flagged after the 'You made a train spawner' message popped up. Being swapped, this hopefully will fix it. If not, it's a benign change.