Fixed handling of enderpearls flag