Update EnvironmentChecks.java

This code was based on a misunderstanding.
Merge pull request #344 from ReikaKalseki/patch-1

Update EnvironmentChecks.java