Possible fix for NPE

Shouldn't use Minecraft Directly
Merge pull request #34 from Tarig0/patch-2

Possible fix for NPE