Possible fix for NPE

Shouldn't use Minecraft Directly