Made some compatibility checks with latest minecraft.