inserted hook into Minecraft.java